From 7d62749f14663ea6c0000a4aab2c32041cbb4e75 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 3 Apr 2012 08:12:34 +0530 Subject: self-heald: Find self-heal failures, split-brain Change-Id: Ib967f0fe0b537fe60e51d7d05462b58a7f16596e BUG: 806745 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3077 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index bd0e0462616..af5aadc3c96 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2048,7 +2048,8 @@ afr_self_heal_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this) FRAME_SU_UNDO (bgsh_frame, afr_local_t); if (!sh->unwound && sh->unwind) { - sh->unwind (sh->orig_frame, this, sh->op_ret, sh->op_errno); + sh->unwind (sh->orig_frame, this, sh->op_ret, sh->op_errno, + sh->op_failed); } if (sh->background) { @@ -2187,7 +2188,7 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode) out: if (op_errno) { - orig_sh->unwind (frame, this, -1, op_errno); + orig_sh->unwind (frame, this, -1, op_errno, 1); if (sh_frame) AFR_STACK_DESTROY (sh_frame); } -- cgit