summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r--xlators/cluster/dht/src/dht-layout.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/xlators/cluster/dht/src/dht-layout.c b/xlators/cluster/dht/src/dht-layout.c
index 41b6896743f..5ff2bdbe80a 100644
--- a/xlators/cluster/dht/src/dht-layout.c
+++ b/xlators/cluster/dht/src/dht-layout.c
@@ -464,8 +464,6 @@ dht_layout_anomalies (xlator_t *this, loc_t *loc, dht_layout_t *layout,
uint32_t *holes_p, uint32_t *overlaps_p,
uint32_t *missing_p, uint32_t *down_p, uint32_t *misc_p)
{
- dht_conf_t *conf = NULL;
- uint32_t holes = 0;
uint32_t overlaps = 0;
uint32_t missing = 0;
uint32_t down = 0;
@@ -478,9 +476,6 @@ dht_layout_anomalies (xlator_t *this, loc_t *loc, dht_layout_t *layout,
uint32_t last_stop = 0;
char is_virgin = 1;
-
- conf = this->private;
-
/* TODO: explain WTF is happening */
last_stop = layout->list[0].start - 1;
@@ -509,7 +504,6 @@ dht_layout_anomalies (xlator_t *this, loc_t *loc, dht_layout_t *layout,
if ((prev_stop + 1) < layout->list[i].start) {
hole_cnt++;
- holes += (layout->list[i].start - (prev_stop + 1));
}
if ((prev_stop + 1) > layout->list[i].start) {
@@ -521,7 +515,6 @@ dht_layout_anomalies (xlator_t *this, loc_t *loc, dht_layout_t *layout,
if ((last_stop - prev_stop) || is_virgin)
hole_cnt++;
- holes += (last_stop - prev_stop);
if (holes_p)
*holes_p = hole_cnt;