lib/fs: properly initialize cleaner for pageCache bitmaps

Previously it wasnt working because the timer was fired only once
This commit is contained in:
Aliaksandr Valialkin 2021-01-27 00:21:37 +02:00
parent 419ad74269
commit 3149ac7a7e

View file

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