summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-02-14 09:28:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-20 00:46:59 -0800
commit54b77d368f5a0e7cef6da6754c14a16d05dc7dda (patch)
treed660c3d7c607748de3766d11b629663f29bf7e06 /xlators/cluster/stripe
parent52aa84d64cda85c2f3d07c71c9cfe7e1c18d250d (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
Diffstat (limited to 'xlators/cluster/stripe')
-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;