Skip to content

Commit

Permalink
[Java] Remove inappropriate check from duty cycle of clustered servic…
Browse files Browse the repository at this point in the history
…e agent.
  • Loading branch information
mjpt777 committed Apr 3, 2018
1 parent ac2a2d7 commit 280d60b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,8 @@ public int doWork()
}

int workCount = logAdapter.poll();
if (0 == workCount)
{
if (!CommitPos.isActive(aeron.countersReader(), logAdapter.upperBoundCounterId()))
{
throw new AgentTerminationException("Commit position is not active");
}
}

workCount += serviceControlAdapter.poll();

if (activeLog != null)
{
switchActiveLog();
Expand Down

0 comments on commit 280d60b

Please sign in to comment.