Skip to content

Commit

Permalink
[Java] Fix appendSnapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Mar 26, 2018
1 parent c9bb4f5 commit 80aebd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ public void appendSnapshot(
{
final Entry entry = entries.get(size - 1);

if (entry.leadershipTermId != leadershipTermId)
if (entry.type == ENTRY_TYPE_TERM && entry.leadershipTermId != leadershipTermId)
{
throw new IllegalStateException("leadershipTermId out of sequence: previous " +
entry.leadershipTermId + " this " + leadershipTermId);
Expand Down

0 comments on commit 80aebd6

Please sign in to comment.