parent
995aea853c
commit
65be4dbf09
1
.pending/improvements/sdk/4379-close-db-write-
Normal file
1
.pending/improvements/sdk/4379-close-db-write-
Normal file
@ -0,0 +1 @@
|
||||
#4379 close db write batch.
|
||||
@ -198,6 +198,7 @@ func (rs *Store) Commit() types.CommitID {
|
||||
|
||||
// Need to update atomically.
|
||||
batch := rs.db.NewBatch()
|
||||
defer batch.Close()
|
||||
setCommitInfo(batch, version, commitInfo)
|
||||
setLatestVersion(batch, version)
|
||||
batch.Write()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user