From 95601229b8318f015a19d7eff89f73853b684a49 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 26 Mar 2018 10:56:51 +0530 Subject: cluster/dht: ENOSPC will not fail rebalance ENOSPC returned by a file migration is no longer considered a rebalance failure. Change-Id: I21cf3a8acdc827bc478e138d6cb5db649d53a28c fixes: bz#1553598 Signed-off-by: N Balachandran --- xlators/cluster/dht/src/dht-rebalance.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index c11ae58621e..b5906f5ec4e 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2521,9 +2521,9 @@ int32_t gf_defrag_handle_migrate_error (int32_t op_errno, gf_defrag_info_t *defrag) { int ret = 0; - /* if errno is not ENOSPC or ENOTCONN, we can still continue + /* if errno is not ENOTCONN, we can still continue with rebalance process */ - if ((op_errno != ENOSPC) && (op_errno != ENOTCONN)) { + if (op_errno != ENOTCONN) { ret = 1; goto out; } @@ -2537,10 +2537,6 @@ gf_defrag_handle_migrate_error (int32_t op_errno, gf_defrag_info_t *defrag) goto out; } - if (op_errno == ENOSPC) { - ret = -1; - } - out: return ret; } -- cgit