Do not fail lookup() in case of split-brain.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
This commit is contained in:
Vikas Gorur 2009-04-23 06:53:02 -07:00 committed by Anand V. Avati
parent 99351618cd
commit 689347f278

View File

@ -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);
}