diff options
Diffstat (limited to 'xlators/cluster/dht')
| -rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index e0f25b1d080..2580dd24ed2 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2729,12 +2729,6 @@ gf_defrag_migrate_single_file(void *opaque)          goto out;      } -    if (!gf_defrag_should_i_migrate(this, rebal_entry->local_subvol_index, -                                    entry->d_stat.ia_gfid)) { -        gf_msg_debug(this->name, 0, "Don't migrate %s ", entry_loc.path); -        goto out; -    } -      gf_uuid_copy(entry_loc.gfid, entry->d_stat.ia_gfid);      gf_uuid_copy(entry_loc.pargfid, loc->gfid); @@ -2760,6 +2754,12 @@ gf_defrag_migrate_single_file(void *opaque)          goto out;      } +    if (!gf_defrag_should_i_migrate(this, rebal_entry->local_subvol_index, +                                    entry->d_stat.ia_gfid)) { +        gf_msg_debug(this->name, 0, "Don't migrate %s ", entry_loc.path); +        goto out; +    } +      iatt_ptr = &iatt;      hashed_subvol = dht_subvol_get_hashed(this, &entry_loc);  | 
