MCPcopy Create free account
hub / github.com/Tencent/phxsql / LoadCheckpointFiles

Method LoadCheckpointFiles

phxbinlogsvr/core/storage/checkpoint_manager.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int 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
130int CheckPointManager::MakeCheckPoint(const vector<string> &gtidlist) {
131 StatusRunningHandler handler(this);

Callers

nothing calls this directly

Calls 4

ColorLogInfoFunction · 0.85
ResetMethod · 0.80
OpenDBMethod · 0.45
WriteDataMethod · 0.45

Tested by

no test coverage detected