summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/tier.c
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2017-06-22 15:56:28 +0530
committerRaghavendra G <rgowdapp@redhat.com>2017-06-23 10:12:17 +0000
commitd66fb14a952729caf51c8328448a548c4d198082 (patch)
tree5c5189daecfc1b05f5dd0ef303b69c4972a74745 /xlators/cluster/dht/src/tier.c
parent0c0bc42ddfef4f05b50c3d1510e93ef3ec292a56 (diff)
cluster/dht: rebalance gets file count periodically
The rebalance used to get the file count in the beginning and not update it. This caused estimates to fail if the number changed during the rebalance. The rebalance now updates the file count periodically. Change-Id: I1667ee69e8a1d7d6bc6bc2f060fad7f989d19ed4 BUG: 1464110 Signed-off-by: N Balachandran <nbalacha@redhat.com> Reviewed-on: https://review.gluster.org/17607 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/tier.c')
-rw-r--r--xlators/cluster/dht/src/tier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c
index e4b910eb0e6..01b6ada3677 100644
--- a/xlators/cluster/dht/src/tier.c
+++ b/xlators/cluster/dht/src/tier.c
@@ -2958,6 +2958,7 @@ tier_init (xlator_t *this)
defrag->tier_conf.last_promote_qfile_index = 0;
defrag->tier_conf.is_tier = 1;
+ defrag->this = this;
ret = dict_get_int32 (this->options,
"tier-max-promote-file-size", &maxsize);