//Otherwise spin doing unrestricted tasks until we can bail out
//and do the restricted task that was polled
while (!m_rejoinTaskLog.isEmpty() && !mrm.canDoRestricted()) {
replayFromTaskLog(mrm);
}
mrm.didRestricted();
if (m_rejoinState == kStateRunning) {
task.run(getSiteProcedureConnection());
} else {
task.runForRejoin(getSiteProcedureConnection(), m_rejoinTaskLog);
}