diff options
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 795574661e7..5e3dc23e820 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");  | 
