summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith Kumar Karampuri <pkarampu@redhat.com>2016-03-04 20:26:51 -0800
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-03-05 02:47:10 -0800
commit35cd7053eaf7b41046a505247388a0724b74c3c7 (patch)
tree2aa02da033beddb8c5bbd9b117522dc301790c12 /xlators
parentad0b1253b9d74797620c493184818685c024f17c (diff)
Revert "afr: do not set arbiter as a readable subvol in inode context"
This reverts commit ad0b1253b9d74797620c493184818685c024f17c. Change-Id: Id43ba8e75d58325f897e15e3f64f9389236adb40 Reviewed-on: http://review.gluster.org/13608 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 4dd5d74a16b..96ed41d3abf 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -692,10 +692,6 @@ afr_replies_interpret (call_frame_t *frame, xlator_t *this, inode_t *inode)
data_readable[i] = 1;
metadata_readable[i] = 1;
}
- if (AFR_IS_ARBITER_BRICK (priv, ARBITER_BRICK_INDEX)) {
- data_readable[ARBITER_BRICK_INDEX] = 0;
- metadata_readable[ARBITER_BRICK_INDEX] = 0;
- }
for (i = 0; i < priv->child_count; i++) {
if (!replies[i].valid) {
@@ -1793,10 +1789,6 @@ unwind:
read_subvol = spb_choice;
else
read_subvol = afr_first_up_child (frame, this);
- if (AFR_IS_ARBITER_BRICK (priv, read_subvol)) {
- local->op_ret = -1;
- local->op_errno = ENOTCONN;
- }
}
par_read_subvol = afr_get_parent_read_subvol (this, parent, replies,
readable);