summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2012-05-22 11:25:55 +0530
committerVijay Bellur <vijay@gluster.com>2012-05-23 02:11:35 -0700
commit638a4740cc553c96bc01d1dfe4a2b7acf0b406e6 (patch)
tree0b6f1d9b5dca2230bb2d54d85f45bee3d452e498
parenta87151dc3a34e24d6ba6d3f4b84d2c5feabff587 (diff)
cluster/dht: Handle ENOENT failure in dht_rmdir_opendir_cbk
We should not treat ENOENT as a failure in rmdir. BUG: 806761 Change-Id: I847cfd9fb31880b8200cf04aa795fed3c870f71a Signed-off-by: shishir gowda <shishirng@gluster.com> Reviewed-on: http://review.gluster.com/3402 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--xlators/cluster/dht/src/dht-common.c6
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 828acca..7ac08c6 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;
}