diff options
author | N Balachandran <nbalacha@redhat.com> | 2017-06-22 15:56:28 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-06-23 10:12:17 +0000 |
commit | d66fb14a952729caf51c8328448a548c4d198082 (patch) | |
tree | 5c5189daecfc1b05f5dd0ef303b69c4972a74745 /xlators/cluster/dht/src/dht-common.h | |
parent | 0c0bc42ddfef4f05b50c3d1510e93ef3ec292a56 (diff) | |
download | glusterfs-d66fb14a952729caf51c8328448a548c4d198082.tar.gz glusterfs-d66fb14a952729caf51c8328448a548c4d198082.tar.xz glusterfs-d66fb14a952729caf51c8328448a548c4d198082.zip |
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-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index b63d4e1888..cf300385ab 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -550,6 +550,9 @@ struct gf_defrag_info_ { /* lock migration flag */ gf_boolean_t lock_migration_enabled; + /* backpointer to make it easier to write functions for rebalance */ + xlator_t *this; + }; typedef struct gf_defrag_info_ gf_defrag_info_t; |