Skip to content

Commit e460794

Browse files
committed
open: remove version check for shared objects
Remove a check that was too strict; even if the existing store version is older, we will ratchet it up to `opts.FormatMajorVersion`, which must support shared objects (checked by `opts.Validate()`).
1 parent 8ab4b15 commit e460794

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

open.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ func Open(dirname string, opts *Options) (db *DB, err error) {
180180
dirname)
181181
}
182182
}()
183-
} else {
184-
if opts.Experimental.CreateOnShared != remote.CreateOnSharedNone && formatVersion < FormatMinForSharedObjects {
185-
return nil, errors.Newf(
186-
"pebble: database %q configured with shared objects but written in too old format major version %d",
187-
dirname, formatVersion)
188-
}
189183
}
190184

191185
// Find the currently active manifest, if there is one.

0 commit comments

Comments
 (0)