diff options
author | N Balachandran <nbalacha@redhat.com> | 2017-06-01 22:13:41 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2017-06-20 04:57:14 +0000 |
commit | f05dd5d6d9b8953bf97c70148bae8eadc68b5c24 (patch) | |
tree | ba54986223e5ac73d8104ed631a42bc62c3c84c5 /xlators/cluster/dht/src/dht-common.h | |
parent | ef331f945bfd4e5664d557ce8e5a4bd275792e13 (diff) |
cluster/dht: Include dirs in rebalance estimates
Empty directories were not being considered while
calculating rebalance estimates leading to negative
time-left values being displayed as part of the
rebalance status.
> BUG: 1457985
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
> Reviewed-on: https://review.gluster.org/17448
> Smoke: Gluster Build System <jenkins@build.gluster.org>
> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
> Reviewed-by: Amar Tumballi <amarts@redhat.com>
> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Change-Id: I48d41d702e72db30af10e6b87b628baa605afa98
BUG: 1460914
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: https://review.gluster.org/17530
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index c74beb26d96..ab44600d313 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -457,6 +457,7 @@ struct gf_defrag_info_ { uint64_t num_files_lookedup; uint64_t total_failures; uint64_t skipped; + uint64_t num_dirs_processed; gf_lock_t lock; int cmd; pthread_t th; @@ -1103,7 +1104,7 @@ int dht_newfile_cbk (call_frame_t *frame, void *cookie, xlator_t *this, struct iatt *postparent, dict_t *xdata); int -gf_defrag_status_get (gf_defrag_info_t *defrag, dict_t *dict); +gf_defrag_status_get (dht_conf_t *conf, dict_t *dict); void gf_defrag_set_pause_state (gf_tier_conf_t *tier_conf, tier_pause_state_t state); @@ -1124,7 +1125,7 @@ int gf_defrag_start_detach_tier (gf_defrag_info_t *defrag); int -gf_defrag_stop (gf_defrag_info_t *defrag, gf_defrag_status_t status, +gf_defrag_stop (dht_conf_t *conf, gf_defrag_status_t status, dict_t *output); void* |