summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-dir-read.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-24 07:41:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-24 05:23:04 -0800
commit3fe840d93730f1f7feef053e58dfbc40f99cae04 (patch)
treea23495e515d611e062f80d30ba3217f3565407d3 /xlators/cluster/afr/src/afr-dir-read.c
parent4a43031ce0f045b673a50159dce5316bcae825ee (diff)
cluster/afr: Fix inode context bitmasks.
Set opendir_done and split_brain flags correctly in the inode context. Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 249 (Self heal of a file that does not exist on the first subvolume) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=249
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-read.c')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index ac0663ad971..ed052589c83 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -57,7 +57,7 @@ afr_examine_dir_completion_cbk (call_frame_t *frame, xlator_t *this)
local = frame->local;
sh = &local->self_heal;
- afr_set_opendir_done (this, local->fd->inode, 1);
+ afr_set_opendir_done (this, local->fd->inode);
/* let self-heal's local cleanup free this */
local->cont.opendir.checksum = NULL;
@@ -167,7 +167,7 @@ out:
afr_self_heal (frame, this,
afr_examine_dir_completion_cbk);
} else {
- afr_set_opendir_done (this, local->fd->inode, 1);
+ afr_set_opendir_done (this, local->fd->inode);
AFR_STACK_UNWIND (opendir, frame, local->op_ret,
local->op_errno, local->fd);