summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorLakshmipathi <lakshmipathi@gluster.com>2010-05-31 05:52:33 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-31 05:39:29 -0700
commit88229e48f80aebb897cee1c1aeca36c6826e148f (patch)
tree99c73502d53319849b6d21778ea1fe469f2c40c9 /xlators
parent3a557d8ad12cc764127500a183f5cfd0cad22d21 (diff)
dht prints 100% full when subvolume is not connected to remote host
Signed-off-by: lakshmipathi <lakshmipathi@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-diskusage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-diskusage.c b/xlators/cluster/dht/src/dht-diskusage.c
index ceb8044..a7acf8e 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,