mirror of
https://github.com/chaisql/chai.git
synced 2025-09-26 19:51:21 +08:00
use latest pebble disk format
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user