예제 #1
0
파일: Site.java 프로젝트: sumitk1/voltdb
  @Override
  public void setRejoinComplete(RejoinProducer.ReplayCompletionAction replayComplete) {
    // transition from kStateRejoining to live rejoin replay.
    // pass through this transition in all cases; if not doing
    // live rejoin, will transfer to kStateRunning as usual
    // as the rejoin task log will be empty.
    assert (m_rejoinState == kStateRejoining);

    if (replayComplete == null) {
      throw new RuntimeException("Null Replay Complete Action.");
    }

    m_rejoinState = kStateReplayingRejoin;
    m_replayCompletionAction = replayComplete;
    if (m_rejoinTaskLog != null) {
      m_rejoinTaskLog.setEarliestTxnId(m_replayCompletionAction.getSnapshotTxnId());
    }
  }
예제 #2
0
파일: Site.java 프로젝트: sumitk1/voltdb
 private void setReplayRejoinComplete() {
   // transition out of rejoin replay to normal running state.
   assert (m_rejoinState == kStateReplayingRejoin);
   m_replayCompletionAction.run();
   m_rejoinState = kStateRunning;
 }