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

Method IsMaster

phxqueue/scheduler/schedulermgr.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207bool SchedulerMgr::IsMaster() {
208 bool force{false};
209 bool master{false};
210 IsForceMaster(force, master);
211 if (force) return master;
212
213 return comm::utils::Time::GetSteadyClockMS() < impl_->master_expire_time_ms;
214}
215
216bool SchedulerMgr::IsMaster(uint64_t now) {
217 bool force{false};

Callers 1

DoRunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected