From 4a4477ee29b7620ef28140d6fc664e0473b1ba28 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 14 May 2012 14:50:05 +0530 Subject: 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 Reviewed-on: http://review.gluster.com/3327 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 828accac3..7ac08c659 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; } -- cgit