diff options
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 866e3faf629..b41186215bf 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5026,12 +5026,14 @@ dht_rmdir_hashed_subvol_cbk (call_frame_t *frame, void *cookie, xlator_t *this, struct iatt *postparent, dict_t *xdata) { dht_local_t *local = NULL; + dht_conf_t *conf = NULL; int this_call_cnt = 0; call_frame_t *prev = NULL; char gfid[GF_UUID_BUF_SIZE] ={0}; local = frame->local; prev = cookie; + conf = this->private; uuid_unparse(local->loc.gfid, gfid); @@ -5040,11 +5042,12 @@ dht_rmdir_hashed_subvol_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (op_ret == -1) { local->op_errno = op_errno; local->op_ret = -1; - if (op_errno != ENOENT && op_errno != EACCES) { - local->need_selfheal = 1; + if (conf->subvolume_cnt != 1) { + if (op_errno != ENOENT && op_errno != EACCES) { + local->need_selfheal = 1; + } } - gf_msg_debug (this->name, 0, "rmdir on %s for %s failed " "(gfid = %s) (%s)", |