diff options
| -rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 8 | 
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;  }  | 
