From 88229e48f80aebb897cee1c1aeca36c6826e148f Mon Sep 17 00:00:00 2001 From: Lakshmipathi Date: Mon, 31 May 2010 05:52:33 +0000 Subject: dht prints 100% full when subvolume is not connected to remote host Signed-off-by: lakshmipathi Signed-off-by: Anand V. Avati BUG: 799 (dht prints 100% full when subvolume is not connected to remote host) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=799 --- xlators/cluster/dht/src/dht-diskusage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-diskusage.c b/xlators/cluster/dht/src/dht-diskusage.c index ceb8044d544..a7acf8e41f1 100644 --- a/xlators/cluster/dht/src/dht-diskusage.c +++ b/xlators/cluster/dht/src/dht-diskusage.c @@ -210,7 +210,7 @@ dht_is_subvol_filled (xlator_t *this, xlator_t *subvol) } UNLOCK (&conf->subvolume_lock); - if (subvol_filled) { + if (subvol_filled && conf->subvolume_status[i]) { if (!(conf->du_stats[i].log++ % (GF_UNIVERSAL_ANSWER * 10))) { GF_LOG_OCCASIONALLY (gf_log_subvol_full, this->name, GF_LOG_WARNING, -- cgit