Skip to content

Commit 2bb622c

Browse files
authored
ethdb/pebble: fix max memorytable size (#26776)
1 parent 98b0ea6 commit 2bb622c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethdb/pebble/pebble.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
131131
// The max memtable size is limited by the uint32 offsets stored in
132132
// internal/arenaskl.node, DeferredBatchOp, and flushableBatchEntry.
133133
// Taken from https://github.com/cockroachdb/pebble/blob/master/open.go#L38
134-
maxMemTableSize := 4 << 30 // 4 GB
134+
maxMemTableSize := 4<<30 - 1 // Capped by 4 GB
135135

136136
// Two memory tables is configured which is identical to leveldb,
137137
// including a frozen memory table and another live one.

0 commit comments

Comments
 (0)