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

Method GetCheckPoint

phxqueue/store/checkpointstat.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104comm::RetCode CheckPointStat::GetCheckPoint(uint64_t &cp) {
105 cp = -1;
106
107 lock_guard<mutex> lock_guard(impl_->lock);
108
109 CheckPointStatItem_t *item = impl_->buf;
110 if (item->magic == CHECKPOINTSTAT_MAGIC) cp = item->cp;
111 return comm::RetCode::RET_OK;
112}
113
114comm::RetCode CheckPointStat::UpdateCheckPointAndFlush(const uint64_t cp) {
115 lock_guard<mutex> lock_guard(impl_->lock);

Callers 3

GetMethod · 0.80
DumpCheckPointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected