Skip to content

Commit

Permalink
Merge pull request #1786 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
cap memory table size as maxMemTableSize-1
  • Loading branch information
ucwong authored Nov 3, 2023
2 parents 7c329ce + 4424903 commit 70d52ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctxcdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool, e
memTableLimit := 2
memTableSize := cache * 1024 * 1024 / 2 / memTableLimit
if memTableSize > maxMemTableSize {
memTableSize = maxMemTableSize
memTableSize = maxMemTableSize - 1
}
db := &Database{
fn: file,
Expand Down

0 comments on commit 70d52ee

Please sign in to comment.