From bdd67270de313411ff22a74517b55e17e4f2f745 Mon Sep 17 00:00:00 2001 From: tianjiongzhang <236556116@qq.com> Date: Tue, 16 Aug 2022 10:15:51 +0800 Subject: [PATCH] enhance:clean up blockcache space quickly. Signed-off-by: tianjiongzhang <236556116@qq.com> --- blockcache/bcache/bcache_disk_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockcache/bcache/bcache_disk_store.go b/blockcache/bcache/bcache_disk_store.go index 09034688c5..a4b837e83e 100644 --- a/blockcache/bcache/bcache_disk_store.go +++ b/blockcache/bcache/bcache_disk_store.go @@ -360,7 +360,7 @@ func (bm *bcacheManager) freeSpace(store *DiskStore, free float32, files int64) break } //avoid dead loop - if cnt > 100000 { + if cnt > 10000000 { break }