cluster/stripe: Set op_ret as failure if inode is not being set in lookup cbk

Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 560 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=560
This commit is contained in:
Vijay Bellur 2010-02-14 09:28:34 +00:00 committed by Anand V. Avati
parent 52aa84d64c
commit 54b77d368f

View File

@ -627,7 +627,8 @@ stripe_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
strerror (op_errno));
if (local->op_errno != ESTALE)
local->op_errno = op_errno;
if ((op_errno == ENOTCONN) || (op_errno == ESTALE))
if ((op_errno == ENOTCONN) || (op_errno == ESTALE) ||
(FIRST_CHILD(this) == prev->this))
local->failed = 1;
if (op_errno == ENOENT)
local->entry_self_heal_needed = 1;