Skip to content

Commit

Permalink
[Java] Poll Archive only if NULL_VALUE == liveLogReplaySessionId.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Aug 23, 2024
1 parent 0970140 commit 7f66094
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,13 @@ private int liveLogReplay(final long nowMs)
workCount++;
}
}
else if (pollForResponse(clusterArchive, correlationId))
else if (NULL_VALUE == liveLogReplaySessionId)
{
liveLogReplaySessionId = clusterArchive.controlResponsePoller().relevantId();
timeOfLastProgressMs = nowMs;
if (pollForResponse(clusterArchive, correlationId))
{
liveLogReplaySessionId = clusterArchive.controlResponsePoller().relevantId();
timeOfLastProgressMs = nowMs;
}
}
else if (NULL_COUNTER_ID == liveLogRecCounterId)
{
Expand All @@ -858,7 +861,6 @@ else if (NULL_COUNTER_ID == liveLogRecCounterId)
liveLogRecordingId = RecordingPos.getRecordingId(countersReader, liveLogRecCounterId);
timeOfLastBackupQueryMs = nowMs;
timeOfLastProgressMs = nowMs;

state(UPDATE_RECORDING_LOG, nowMs);
}
}
Expand Down

0 comments on commit 7f66094

Please sign in to comment.