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

Method GetAddrScale

phxqueue/scheduler/scheduler.cpp:172–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172comm::RetCode Scheduler::GetAddrScale(const comm::proto::GetAddrScaleRequest &req,
173 comm::proto::GetAddrScaleResponse &resp) {
174 comm::SchedulerBP::GetThreadInstance()->OnGetAddrScale(req);
175
176 comm::RetCode ret;
177 ret = impl_->scheduler_mgr->GetAddrScale(req, resp);
178 if (0 > as_integer(ret)) {
179 QLErr("GetAddrScale ret %d", as_integer(ret));
180 comm::SchedulerBP::GetThreadInstance()->OnGetAddrScaleFail(req);
181 return ret;
182 }
183
184 comm::SchedulerBP::GetThreadInstance()->OnGetAddrScaleSucc(req, resp);
185 return ret;
186}
187
188comm::RetCode Scheduler::RawGetLockInfo(comm::proto::GetLockInfoRequest &req,
189 comm::proto::GetLockInfoResponse &resp) {

Callers

nothing calls this directly

Calls 4

as_integerFunction · 0.85
OnGetAddrScaleFailMethod · 0.80
OnGetAddrScaleSuccMethod · 0.80
OnGetAddrScaleMethod · 0.45

Tested by

no test coverage detected