Browse Source

Save disk space metrics immediately (#4740)

pull/4745/head
Nikita Mochalov 1 year ago
committed by GitHub
parent
commit
4b1ba7f5b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/storage/disk_location.go

1
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:

Loading…
Cancel
Save