diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-02-14 09:28:34 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-02-20 00:46:59 -0800 |
commit | 54b77d368f5a0e7cef6da6754c14a16d05dc7dda (patch) | |
tree | d660c3d7c607748de3766d11b629663f29bf7e06 /xlators/cluster/stripe/src/stripe.c | |
parent | 52aa84d64cda85c2f3d07c71c9cfe7e1c18d250d (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/src/stripe.c')
-rw-r--r-- | xlators/cluster/stripe/src/stripe.c | 3 |
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; |