Skip to content

Commit

Permalink
fix: fix the pebble config of level option (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
flywukong authored Dec 18, 2023
1 parent 8205fdc commit 8a440e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const (
// metricsGatheringInterval specifies the interval to retrieve pebble database
// compaction, io and pause stats to report to the user.
metricsGatheringInterval = 3 * time.Second

// numLevels is the level number of pebble sst files
numLevels = 7
)

// Database is a persistent key-value store based on the pebble storage engine.
Expand Down Expand Up @@ -196,6 +199,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
WriteStallBegin: db.onWriteStallBegin,
WriteStallEnd: db.onWriteStallEnd,
},
Levels: make([]pebble.LevelOptions, numLevels),
Logger: panicLogger{}, // TODO(karalabe): Delete when this is upstreamed in Pebble
}

Expand Down

0 comments on commit 8a440e7

Please sign in to comment.