From 2d7d08e812ad07ed62ce2c4a8357b5830e959101 Mon Sep 17 00:00:00 2001 From: Yumin Xia Date: Mon, 20 May 2019 11:06:10 -0700 Subject: [PATCH 1/2] close db write batch after use --- store/rootmulti/store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 85d9b5b206d8..9c55fed2c2ea 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -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() From 7ce457d251ab743013df9f7ffc7dce314eddd323 Mon Sep 17 00:00:00 2001 From: Yumin Xia Date: Tue, 21 May 2019 17:09:43 -0700 Subject: [PATCH 2/2] add clog file --- .pending/improvements/sdk/4379-close-db-write- | 1 + 1 file changed, 1 insertion(+) create mode 100644 .pending/improvements/sdk/4379-close-db-write- diff --git a/.pending/improvements/sdk/4379-close-db-write- b/.pending/improvements/sdk/4379-close-db-write- new file mode 100644 index 000000000000..d18f9c4055dd --- /dev/null +++ b/.pending/improvements/sdk/4379-close-db-write- @@ -0,0 +1 @@ +#4379 close db write batch.