Skip to content

Commit

Permalink
Merge pull request #1383 from EventStore/awaiting-commit-count
Browse files Browse the repository at this point in the history
Prepare count from master can come last
  • Loading branch information
hayley-jean committed Aug 4, 2017
2 parents e86124d + 3dc922e commit 3da4fe4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void Handle(StorageMessage.CommitAck message)

_awaitingCommit -= 1;
if(message.IsSelf) _hadSelf = true;
if (_awaitingCommit == 0 && _hadSelf)
if (_awaitingCommit <= 0 && _hadSelf)
CompleteSuccessRequest(message.FirstEventNumber, message.LastEventNumber, message.LogPosition, message.LogPosition);
}

Expand Down

0 comments on commit 3da4fe4

Please sign in to comment.