Skip to content

Commit

Permalink
storage: use pebble ArchiveCleaner
Browse files Browse the repository at this point in the history
This keeps the WAL

Release note: None
  • Loading branch information
tbg committed Mar 30, 2021
1 parent 42628ed commit fd9aa5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ func NewPebble(ctx context.Context, cfg PebbleConfig) (*Pebble, error) {
cfg.Opts = DefaultPebbleOptions()
}
cfg.Opts.EnsureDefaults()
cfg.Opts.Cleaner = pebble.ArchiveCleaner{}
cfg.Opts.ErrorIfNotExists = cfg.MustExist
if settings := cfg.Settings; settings != nil {
cfg.Opts.WALMinSyncInterval = func() time.Duration {
Expand Down

0 comments on commit fd9aa5a

Please sign in to comment.