From 4b1ba7f5b240ca0a83a6bc2c5f7cb1e57a671f8a Mon Sep 17 00:00:00 2001 From: Nikita Mochalov Date: Thu, 10 Aug 2023 16:52:32 +0300 Subject: [PATCH] Save disk space metrics immediately (#4740) --- weed/storage/disk_location.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index aa3f35eac..b7fa82197 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -83,6 +83,7 @@ func NewDiskLocation(dir string, maxVolumeCount int32, minFreeSpace util.MinFree location.ecVolumes = make(map[needle.VolumeId]*erasure_coding.EcVolume) location.closeCh = make(chan struct{}) go func() { + location.CheckDiskSpace() for { select { case <-location.closeCh: