MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetCheckpointInstanceID

Method GetCheckpointInstanceID

phxqueue/lock/locksm.cpp:243–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243const uint64_t LockSM::GetCheckpointInstanceID(const int paxos_group_id) const {
244 comm::LockSMBP::GetThreadInstance()->
245 OnGetCheckpointInstanceID(impl_->lock->GetTopicID(), paxos_group_id);
246
247 const uint64_t checkpoint{impl_->lock->GetLockMgr()->checkpoint(paxos_group_id)};
248 QLVerb("topic_id %d paxos_group_id %d cp %llu",
249 impl_->lock->GetTopicID(), paxos_group_id, checkpoint);
250
251 return checkpoint;
252}
253
254int LockSM::GetCheckpointState(const int paxos_group_id, string &dir_path,
255 vector<string> &file_list) {

Callers

nothing calls this directly

Calls 4

GetLockMgrMethod · 0.80
GetTopicIDMethod · 0.45
checkpointMethod · 0.45

Tested by

no test coverage detected