From 0daab848974d0abe93235a44656a4fff00be57f5 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "ethdb/pebble: cap memory table size as maxMemTableSize-1 (#28444)" This reverts commit cc68033a32c7c8a4fae708c2cb59d46b908e8552. --- ethdb/pebble/pebble.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ethdb/pebble/pebble.go b/ethdb/pebble/pebble.go index d713e2863efe..691aa7329986 100644 --- a/ethdb/pebble/pebble.go +++ b/ethdb/pebble/pebble.go @@ -160,15 +160,8 @@ func New(file string, cache int, handles int, namespace string, readonly bool, e // including a frozen memory table and another live one. memTableLimit := 2 memTableSize := cache * 1024 * 1024 / 2 / memTableLimit - - // The memory table size is currently capped at maxMemTableSize-1 due to a - // known bug in the pebble where maxMemTableSize is not recognized as a - // valid size. - // - // TODO use the maxMemTableSize as the maximum table size once the issue - // in pebble is fixed. - if memTableSize >= maxMemTableSize { - memTableSize = maxMemTableSize - 1 + if memTableSize > maxMemTableSize { + memTableSize = maxMemTableSize } db := &Database{ fn: file,