summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-02-14 09:23:01 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-20 00:47:07 -0800
commit50ead4a1f7ce8a6ce4dacc32b6bff89912181d11 (patch)
tree877457f2642359188afa4576d173e62b47141b01
parent260cb7a4ab73a585d4a45a929bf0db2083ca0f7d (diff)
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
-rw-r--r--xlators/cluster/stripe/src/stripe.c3
1 files changed, 2 insertions, 1 deletions
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;