summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-23 06:53:02 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-23 22:24:54 +0530
commit689347f278e5acfda95a24f7804a1450043311f3 (patch)
treee2ed749a59e802bdd3bb505e2d800db5574b9b4c
parent99351618cd15da15ee875f143154ea7f8e28eaf4 (diff)
Do not fail lookup() in case of split-brain.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--xlators/cluster/afr/src/afr.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 1808961ad..3a37ab17b 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -411,17 +411,11 @@ int
afr_self_heal_cbk (call_frame_t *frame, xlator_t *this)
{
afr_local_t *local = NULL;
- int ret = -1;
local = frame->local;
if (local->govinda_gOvinda) {
afr_set_split_brain (this, local->cont.lookup.inode, 1);
-
- if (ret < 0) {
- local->op_ret = -1;
- local->op_errno = -ret;
- }
} else {
afr_set_split_brain (this, local->cont.lookup.inode, 0);
}