lib/config, lib/model: Use path from locations to check disk space for db (#5525)

This commit is contained in:
Simon Frei
2019-02-12 13:25:11 +01:00
committed by Audrius Butkevicius
parent d85ef949be
commit 4299af1c63
4 changed files with 8 additions and 19 deletions

View File

@@ -78,7 +78,7 @@ func (s *Size) ParseDefault(str string) error {
return err
}
func checkFreeSpace(req Size, usage fs.Usage) error {
func CheckFreeSpace(req Size, usage fs.Usage) error {
val := req.BaseValue()
if val <= 0 {
return nil