lib/mergeset: typo fix after b6ed9afd6d

This commit is contained in:
Aliaksandr Valialkin 2022-02-21 17:58:22 +02:00
parent d4df32cc6b
commit 986c12487a
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