Save disk space metrics immediately (#4740)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user