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

Method GetCheckpointState

phxqueue/store/storesm.cpp:139–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139int StoreSM::GetCheckpointState(const int paxos_group_id, string &dir_path,
140 vector<string> &file_list) {
141 QLVerb("StoreSM::GetCheckpointState begin");
142
143 auto stat(impl_->store->GetCheckPointStatMgr()->GetCheckPointStat(paxos_group_id));
144 if (!stat) {
145 QLErr("GetCheckPointStat fail paxos_group_id %d", paxos_group_id);
146 return -1;
147 }
148
149 dir_path = stat->GetDir();
150 file_list.clear();
151 file_list.push_back(stat->GetFile());
152
153 return 0;
154}
155
156int StoreSM::LoadCheckpointState(const int paxos_group_id, const string &tmp_dir_path,
157 const vector<string> &vecFileList, const uint64_t cp) {

Callers

nothing calls this directly

Calls 4

GetCheckPointStatMethod · 0.80
GetCheckPointStatMgrMethod · 0.80
GetDirMethod · 0.80
GetFileMethod · 0.80

Tested by

no test coverage detected