mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/fs: properly initialize cleaner for pageCache bitmaps
Previously it wasnt working because the timer was fired only once
This commit is contained in:
parent
419ad74269
commit
3149ac7a7e
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ func MustOpenReaderAt(path string) *ReaderAt {
|
|||
}
|
||||
|
||||
func pageCacheBitmapCleaner(pcbm *atomic.Value, stopCh <-chan struct{}) {
|
||||
t := time.NewTimer(time.Minute)
|
||||
t := time.NewTicker(time.Minute)
|
||||
for {
|
||||
select {
|
||||
case <-stopCh:
|
||||
|
|
Loading…
Reference in a new issue