Skip to content

Commit a6c4a9d

Browse files
committed
cmd/pebble: ensure minimum mvcc is set for newPebbleDB
This patch ensures that pebble commands that ultimately call `newPebbleDB` get their MinimumMCCGarbageSize set.
1 parent 4f7159a commit a6c4a9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/pebble/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func newPebbleDB(dir string) DB {
8383
return pebble.ValueSeparationPolicy{
8484
Enabled: true,
8585
MinimumSize: 512,
86+
MinimumMVCCGarbageSize: 32,
8687
MaxBlobReferenceDepth: 10,
8788
RewriteMinimumAge: 5 * time.Minute,
8889
GarbageRatioLowPriority: 0.10, // 10% garbage

0 commit comments

Comments
 (0)