Skip to content

Commit

Permalink
enhance:clean up blockcache space quickly.
Browse files Browse the repository at this point in the history
Signed-off-by: tianjiongzhang <[email protected]>
  • Loading branch information
zhangtianjiong authored and leonrayang committed Aug 19, 2022
1 parent 77509b3 commit bdd6727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockcache/bcache/bcache_disk_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bdd6727

Please sign in to comment.