Skip to content

Commit

Permalink
fix missing commit at latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
ackratos committed Jan 30, 2019
1 parent a90d449 commit e97b716
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 e97b716

Please sign in to comment.