diff options
author | Amar Tumballi <amar@gluster.com> | 2009-04-13 23:40:22 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-14 14:51:53 +0530 |
commit | 33e81bc94986929caab14a05231b25787a25a41b (patch) | |
tree | 6337d00296825fd6fc461c813c2f96ff67366fba /xlators/cluster/dht/src/dht-diskusage.c | |
parent | d8bc2834d056a23f55bd86a5fd704bd81e35836d (diff) |
bug fixes in dht-disk-usage feature.
fixes bugs seen with dht's disk usage.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-diskusage.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-diskusage.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-diskusage.c b/xlators/cluster/dht/src/dht-diskusage.c index 795574661..5e3dc23e8 100644 --- a/xlators/cluster/dht/src/dht-diskusage.c +++ b/xlators/cluster/dht/src/dht-diskusage.c @@ -223,6 +223,9 @@ dht_free_disk_available_subvol (xlator_t *this, xlator_t *subvol) } UNLOCK (&conf->subvolume_lock); + if (max_avail < conf->min_free_disk) + avail_subvol = subvol; + if (avail_subvol == subvol) { gf_log (this->name, GF_LOG_CRITICAL, "no node has enough free space to schedule create"); |