summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-03-26 10:56:51 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-03-28 04:08:53 +0000
commit95601229b8318f015a19d7eff89f73853b684a49 (patch)
tree7f82ba66714aedddc54ab3fa436e6a8ec89c155d /xlators
parent04ede2e1635d664ea18e266544bffc569ae69bb8 (diff)
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 <nbalacha@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c8
1 files changed, 2 insertions, 6 deletions
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;
}