use latest pebble disk format

This commit is contained in:
Asdine El Hrychy
2025-08-16 16:20:27 +08:00
parent fa99741a5d
commit 05b03975ef

View File

@@ -52,7 +52,7 @@ func NewEngineWith(path string, opts Options, popts *pebble.Options) (*PebbleEng
popts = &pebble.Options{}
}
popts.FormatMajorVersion = pebble.FormatPrePebblev1MarkedCompacted
popts.FormatMajorVersion = pebble.FormatColumnarBlocks
popts.Comparer = DefaultComparer
if popts.Logger == nil {
popts.Logger = pebbleutil.NoopLoggerAndTracer{}
@@ -100,8 +100,6 @@ func NewEngine(path string, opts Options) (*PebbleEngine, error) {
pbpath = filepath.Join(path, "pebble")
}
popts.FormatMajorVersion = pebble.FormatVirtualSSTables
return NewEngineWith(pbpath, opts, &popts)
}