Skip to content

Commit

Permalink
ethdb/pebble: fix max memorytable size (ethereum#26776)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and mmsqe committed Dec 7, 2023
1 parent 7fcc753 commit 550b7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
// The max memtable size is limited by the uint32 offsets stored in
// internal/arenaskl.node, DeferredBatchOp, and flushableBatchEntry.
// Taken from https://github.com/cockroachdb/pebble/blob/master/open.go#L38
maxMemTableSize := 4 << 30 // 4 GB
maxMemTableSize := 4<<30 - 1 // Capped by 4 GB

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

0 comments on commit 550b7c0

Please sign in to comment.