lib/mergeset: typo fix after b6ed9afd6d

This commit is contained in:
Aliaksandr Valialkin 2022-02-21 17:58:22 +02:00
parent 5d45ea1003
commit ed12c60826
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -42,7 +42,7 @@ func SetDataBlocksCacheSize(size int) {
func getMaxInmemoryBlocksCacheSize() int {
maxInmemoryBlockCacheSizeOnce.Do(func() {
if maxInmemoryBlockCacheSize <= 0 {
maxIndexBlockCacheSize = int(0.25 * float64(memory.Allowed()))
maxInmemoryBlockCacheSize = int(0.25 * float64(memory.Allowed()))
}
})
return maxInmemoryBlockCacheSize