Skip to content

Commit aa76263

Browse files
rjl493456442shekhirin
authored andcommitted
ethdb/pebble: fix max memorytable size (ethereum#26776)
1 parent 1f07757 commit aa76263

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)