private void handleRecoveryAck() { CheckPointState nextState = curTxState.nextState(true); if (curTxState != nextState) { saveTxState(nextState); } else { LOG.debug("Recovery complete, current state {}", curTxState); recovering = false; } }
private void handleCheckpointAck() { CheckPointState nextState = curTxState.nextState(false); saveTxState(nextState); }
private void doCheckpoint() { LOG.debug("In checkpoint"); if (curTxState.getState() == CheckPointState.State.COMMITTED) { saveTxState(curTxState.nextState(false)); lastCheckpointTs = System.currentTimeMillis(); } Action action = curTxState.nextAction(false); emit(curTxState.getTxid(), action); }
private void handleRecoveryAck() { CheckPointState nextState = curTxState.nextState(true); if (curTxState != nextState) { saveTxState(nextState); } else { LOG.debug("Recovery complete, current state {}", curTxState); recovering = false; } }
private void handleCheckpointAck() { CheckPointState nextState = curTxState.nextState(false); saveTxState(nextState); }
private void doCheckpoint() { LOG.debug("In checkpoint"); if (curTxState.getState() == CheckPointState.State.COMMITTED) { saveTxState(curTxState.nextState(false)); lastCheckpointTs = System.currentTimeMillis(); } Action action = curTxState.nextAction(false); emit(curTxState.getTxid(), action); }