summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-shared.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/dht-shared.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/dht-shared.c')
-rw-r--r--xlators/cluster/dht/src/dht-shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c
index d947ed401ec..0814db3fe18 100644
--- a/xlators/cluster/dht/src/dht-shared.c
+++ b/xlators/cluster/dht/src/dht-shared.c
@@ -705,6 +705,7 @@ dht_init (xlator_t *this)
defrag->is_exiting = 0;
conf->defrag = defrag;
+ defrag->this = this;
ret = dict_get_str (this->options, "node-uuid", &node_uuid);
if (ret) {