diff options
Diffstat (limited to 'xlators/cluster/dht/src/tier.c')
-rw-r--r-- | xlators/cluster/dht/src/tier.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index 0c8daf64087..2279e060442 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -827,6 +827,12 @@ tier_start (xlator_t *this, gf_defrag_info_t *defrag) } tick = (tick + 1) % TIMER_SECS; + + if (freq_promote != defrag->tier_promote_frequency) + next_promote = tick; + if (freq_demote != defrag->tier_demote_frequency) + next_demote = tick; + if ((next_demote != tick) && (next_promote != tick)) continue; |