MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / OnAskforCheckpoint

Method OnAskforCheckpoint

src/algorithm/learner.cpp:657–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657void Learner :: OnAskforCheckpoint(const PaxosMsg & oPaxosMsg)
658{
659 CheckpointSender * poCheckpointSender = GetNewCheckpointSender(oPaxosMsg.nodeid());
660 if (poCheckpointSender != nullptr)
661 {
662 poCheckpointSender->start();
663 PLGHead("new checkpoint sender started, send to nodeid %lu", oPaxosMsg.nodeid());
664 }
665 else
666 {
667 PLGErr("Checkpoint Sender is running");
668 }
669}
670
671int Learner :: SendCheckpointBegin(
672 const nodeid_t iSendNodeID,

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected