diff options
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 9da36ff9a29..6fd21ebaac8 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2449,10 +2449,11 @@ dht_build_root_loc (inode_t *inode, loc_t *loc) int32_t gf_defrag_handle_migrate_error (int32_t op_errno, gf_defrag_info_t *defrag) { - /* 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) { return 1; + } if (op_errno == ENOTCONN) { /* Most probably mount point went missing (mostly due @@ -2462,13 +2463,6 @@ gf_defrag_handle_migrate_error (int32_t op_errno, gf_defrag_info_t *defrag) return -1; } - if (op_errno == ENOSPC) { - /* rebalance process itself failed, may be - remote brick went down, or write failed due to - disk full etc etc.. */ - return 0; - } - return 0; } |