Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: fix setting of compression algorithm #124388

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/storage/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -1080,8 +1080,8 @@ func newPebble(ctx context.Context, cfg engineConfig) (p *Pebble, err error) {
cfg.opts.FS = cfg.env
cfg.opts.Lock = cfg.env.DirectoryLock
cfg.opts.ErrorIfNotExists = cfg.mustExist
for _, l := range cfg.opts.Levels {
l.Compression = func() sstable.Compression {
for i := range cfg.opts.Levels {
cfg.opts.Levels[i].Compression = func() sstable.Compression {
return getCompressionAlgorithm(ctx, cfg.settings)
}
}
Expand Down
Loading