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

Method ClearSyncCtrl

phxqueue/store/keepsyncthread.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void KeepSyncThread::ClearSyncCtrl() {
112 QLVerb("KeepSyncThread::ClearSyncCtrl");
113
114 time_t last_clear_time{config::GlobalConfig::GetThreadInstance()->
115 GetLastModTime(impl_->store->GetTopicID())};
116
117 if (last_clear_time != impl_->last_clear_time) {
118 impl_->last_clear_time = last_clear_time;
119 impl_->store->GetSyncCtrl()->ClearSyncCtrl();
120 }
121}
122
123
124void KeepSyncThread::MakeCheckPoint() {

Callers

nothing calls this directly

Calls 3

GetSyncCtrlMethod · 0.80
GetLastModTimeMethod · 0.45
GetTopicIDMethod · 0.45

Tested by

no test coverage detected