Skip to content

Commit

Permalink
Set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbhat1 committed Apr 10, 2024
1 parent c9e5f43 commit e295940
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sc/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (cs *CommitStore) Rollback(targetVersion int64) error {
func (cs *CommitStore) LoadVersion(targetVersion int64, copyExisting bool) (types.Committer, error) {
opts := cs.opts
opts.ReadOnly = copyExisting
if copyExisting {
opts.CreateIfMissing = false
}
db, err := memiavl.OpenDB(cs.logger, targetVersion, opts)
if err != nil {
return nil, err
Expand Down

0 comments on commit e295940

Please sign in to comment.