From 54b77d368f5a0e7cef6da6754c14a16d05dc7dda Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 14 Feb 2010 09:28:34 +0000 Subject: cluster/stripe: Set op_ret as failure if inode is not being set in lookup cbk Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 560 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=560 --- xlators/cluster/stripe/src/stripe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/stripe/src/stripe.c') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 0644034f24f..695c490d5f5 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -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; -- cgit