| 117 | } |
| 118 | |
| 119 | int CheckPointManager::LoadCheckpointFiles(const string &sCheckpointTmpFileDirPath) { |
| 120 | STATISTICS(CheckPointTransferFile()); |
| 121 | ColorLogInfo("%s load from check point files %s", __func__, sCheckpointTmpFileDirPath.c_str()); |
| 122 | |
| 123 | Storage storage(Storage::MODE::WRITE, event_storage_->GetDataDir(), option_); |
| 124 | assert(storage.OpenDB(BACKUPCHECKPOINT) == 0); |
| 125 | assert(storage.Reset() == 0); |
| 126 | assert(storage.WriteData(sCheckpointTmpFileDirPath) == 0); |
| 127 | return OK; |
| 128 | } |
| 129 | |
| 130 | int CheckPointManager::MakeCheckPoint(const vector<string> >idlist) { |
| 131 | StatusRunningHandler handler(this); |
nothing calls this directly
no test coverage detected