lib/config, lib/model: Use path from locations to check disk space for db (#5525)
This commit is contained in:
committed by
Audrius Butkevicius
parent
d85ef949be
commit
4299af1c63
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user