From 3fe840d93730f1f7feef053e58dfbc40f99cae04 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 24 Nov 2009 07:41:36 +0000 Subject: cluster/afr: Fix inode context bitmasks. Set opendir_done and split_brain flags correctly in the inode context. Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati 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 --- xlators/cluster/afr/src/afr-dir-read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/afr/src/afr-dir-read.c') diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c index ac0663ad9..ed052589c 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); -- cgit