summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.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-self-heal-common.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-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index 8142bdf1de1..a60331d51bf 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1405,9 +1405,7 @@ afr_bgsh_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this)
sh = &local->self_heal;
if (local->govinda_gOvinda) {
- afr_set_split_brain (this, local->cont.lookup.inode, 1);
- } else {
- afr_set_split_brain (this, local->cont.lookup.inode, 0);
+ afr_set_split_brain (this, local->cont.lookup.inode);
}
gf_log (this->name, GF_LOG_TRACE,
@@ -1444,9 +1442,7 @@ afr_bgsh_unwind (call_frame_t *bgsh_frame, xlator_t *this)
sh = &local->self_heal;
if (local->govinda_gOvinda) {
- afr_set_split_brain (this, local->cont.lookup.inode, 1);
- } else {
- afr_set_split_brain (this, local->cont.lookup.inode, 0);
+ afr_set_split_brain (this, local->cont.lookup.inode);
}
gf_log (this->name, GF_LOG_TRACE,