Skip to content

Commit

Permalink
db: fill missing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
caicancai committed Sep 29, 2024
1 parent 3fb8ee4 commit 982b655
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion open.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func Open(dirname string, opts *Options) (db *DB, err error) {
if opts.Experimental.CreateOnShared != remote.CreateOnSharedNone && formatVersion < FormatMinForSharedObjects {
return nil, errors.Newf(
"pebble: database %q configured with shared objects but written in too old format major version %d",
formatVersion)
dirname, formatVersion)
}
}

Expand Down
1 change: 0 additions & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,6 @@ func (o *Options) Validate() error {
if o.Experimental.CreateOnShared != remote.CreateOnSharedNone && o.FormatMajorVersion < FormatMinForSharedObjects {
fmt.Fprintf(&buf, "FormatMajorVersion (%d) when CreateOnShared is set must be at least %d\n",
o.FormatMajorVersion, FormatMinForSharedObjects)

}
if o.TableCache != nil && o.Cache != o.TableCache.cache {
fmt.Fprintf(&buf, "underlying cache in the TableCache and the Cache dont match\n")
Expand Down

0 comments on commit 982b655

Please sign in to comment.