| 137 | |
| 138 | |
| 139 | int 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 | |
| 156 | int StoreSM::LoadCheckpointState(const int paxos_group_id, const string &tmp_dir_path, |
| 157 | const vector<string> &vecFileList, const uint64_t cp) { |
nothing calls this directly
no test coverage detected