diff options
author | shishir gowda <shishirng@gluster.com> | 2012-05-14 14:50:05 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-14 17:25:12 -0700 |
commit | 4a4477ee29b7620ef28140d6fc664e0473b1ba28 (patch) | |
tree | 54359bcaf97d3528c5b20f5face763fdee4b57e3 /xlators | |
parent | 9c17a68d77f58d6b471a2601070d17dee38546d8 (diff) |
cluster/dht: Handle ENOENT failure in dht_rmdir_opendir_cbk
We should not treat ENOENT as a failure in rmdir.
Change-Id: I1570d2be2bbafe7fc61ca39b8f7f68ee60d2c707
BUG: 806761
Signed-off-by: shishir gowda <shishirng@gluster.com>
Reviewed-on: http://review.gluster.com/3327
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 828accac3e7..7ac08c65930 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4378,8 +4378,10 @@ dht_rmdir_opendir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, "opendir on %s for %s failed (%s)", prev->this->name, local->loc.path, strerror (op_errno)); - local->op_ret = -1; - local->op_errno = op_errno; + if (op_errno != ENOENT) { + local->op_ret = -1; + local->op_errno = op_errno; + } goto err; } |