Skip to content

Commit

Permalink
Update store.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Sep 6, 2022
1 parent 3535503 commit d91a741
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/storage/rocksdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,7 @@ func (rdb *rocksDB) toChangeRecord(writeBatch *grocksdb.WriteBatch, changeNum ui
}

func (rdb *rocksDB) openBackupEngine(folder string) (*grocksdb.BackupEngine, error) {
opts := rdb.opts.rocksDBOpts
return grocksdb.OpenBackupEngine(opts, folder)
return grocksdb.CreateBackupEngine(rdb.db, folder)
}

func (rdb *rocksDB) toTrxnRecord(wbr *grocksdb.WriteBatchRecord) *serverpb.TrxnRecord {
Expand Down

0 comments on commit d91a741

Please sign in to comment.