Skip to content

Commit

Permalink
Merge pull request #58 from binance-chain/hf_commitSync_fix
Browse files Browse the repository at this point in the history
fix missing commit at latest release
  • Loading branch information
ackratos authored Jan 30, 2019
2 parents a90d449 + e97b716 commit cd2dff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/concurrent/async_local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ func (app *asyncLocalClient) CommitSync() (*types.ResponseCommit, error) {
app.commitLock.Lock() // this must come before the wgCommit.Wait()
defer app.commitLock.Unlock()
app.checkTxMidLock.Unlock()
app.wgCommit.Wait() // wait for all the submitted CheckTx/DeliverTx/Query finish
app.rwLock.Lock()
defer app.rwLock.Unlock()
// only checkTxLock is locked here
Expand Down

0 comments on commit cd2dff5

Please sign in to comment.