Skip to content

Commit

Permalink
Close read only rocksdb after backup
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Jun 21, 2019
1 parent f0aadc1 commit d892d6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/rocks/rocksdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ func (s *RocksDBStore) Backup(w io.Writer, id uint64) error {
if err != nil {
return err
}
defer checkDB.Close()

// open a new iterator and dump every key
ro := rocksdb.NewDefaultReadOptions()
Expand Down

0 comments on commit d892d6d

Please sign in to comment.