mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Save disk space metrics immediately (#4740)
This commit is contained in:
parent
e6a49dc533
commit
4b1ba7f5b2
|
@ -83,6 +83,7 @@ func NewDiskLocation(dir string, maxVolumeCount int32, minFreeSpace util.MinFree
|
||||||
location.ecVolumes = make(map[needle.VolumeId]*erasure_coding.EcVolume)
|
location.ecVolumes = make(map[needle.VolumeId]*erasure_coding.EcVolume)
|
||||||
location.closeCh = make(chan struct{})
|
location.closeCh = make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
|
location.CheckDiskSpace()
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-location.closeCh:
|
case <-location.closeCh:
|
||||||
|
|
Loading…
Reference in a new issue