summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-07-31 09:03:49 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-02 07:50:13 -0700
commitd048ec1c1a2abcd4bad3ea5cf07cac328e990ff2 (patch)
treec23a7bfef32522767defde5ca848b4e1a18fd0fe /xlators/cluster
parent8d7682cd5cfb22b06a4f11e2589137ebe85a4709 (diff)
Remove dead variables.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1066 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1066
Diffstat (limited to 'xlators/cluster')
-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 41b689674..5ff2bdbe8 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;