diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2013-12-26 11:31:49 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-01-27 09:17:38 -0800 |
commit | cc1728766620e13ccfe2cd0b162cbc848b20e422 (patch) | |
tree | 8bb38fe14b21b796a1eb86cffa5ed1929080517d /xlators | |
parent | 0c80a202d475a4abb8a5738f144739234d7557c6 (diff) |
cluster/afr: Treat ESTALE on nameless lookup as ENOENT
Change-Id: I635fc0fa955b33590f1c5b4dfec22d591ea8575c
BUG: 1032894
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/6593
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index af01f2ef28b..acb6bc0e86a 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -2184,7 +2184,9 @@ afr_resultant_errno_get (int32_t *children, static void afr_lookup_handle_error (afr_local_t *local, int32_t op_ret, int32_t op_errno) { - GF_ASSERT (local); + if ((local->loc.name == NULL) && (op_errno == ESTALE)) + op_errno = ENOENT; + if (op_errno == ENOENT) local->enoent_count++; |