summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-rebalance.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht/src/dht-rebalance.c')
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
index 6a9153f794d..35e19e5af7c 100644
--- a/xlators/cluster/dht/src/dht-rebalance.c
+++ b/xlators/cluster/dht/src/dht-rebalance.c
@@ -1023,7 +1023,7 @@ find_new_subvol:
* removed-brick, do not mark the error as failure */
if (conf->decommission_subvols_cnt) {
*ignore_failure = _gf_true;
- for (i = 0; i < conf->decommission_subvols_cnt; i++) {
+ for (i = 0; i < conf->subvolume_cnt; i++) {
if (conf->decommissioned_bricks[i] == from) {
*ignore_failure = _gf_false;
break;