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 authored and pgermishuys committed Aug 4, 2017
1 parent 4881721 commit d5e0918
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 d5e0918

Please sign in to comment.