aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location.go
diff options
context:
space:
mode:
authorNikita Mochalov <Zamony@users.noreply.github.com>2023-08-10 16:52:32 +0300
committerGitHub <noreply@github.com>2023-08-10 06:52:32 -0700
commit4b1ba7f5b240ca0a83a6bc2c5f7cb1e57a671f8a (patch)
tree9127da2eeb7bc77c8923e2f58a6dd11ba3e20122 /weed/storage/disk_location.go
parente6a49dc5337bb73a6334647bb34a44570b3ef6d7 (diff)
downloadseaweedfs-4b1ba7f5b240ca0a83a6bc2c5f7cb1e57a671f8a.tar.xz
seaweedfs-4b1ba7f5b240ca0a83a6bc2c5f7cb1e57a671f8a.zip
Save disk space metrics immediately (#4740)
Diffstat (limited to 'weed/storage/disk_location.go')
-rw-r--r--weed/storage/disk_location.go1
1 files changed, 1 insertions, 0 deletions
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: