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

Method GetIORoutine

phxsqlproxy/io_routine.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52int IORoutineMgr::GetIORoutine(IORoutine ** io_routine_pointer) {
53 if (io_routine_stack_.empty()) {
54 phxsql::LogError("io routine stack empty!");
55 return -__LINE__;
56 }
57 MonitorPluginEntry::GetDefault()->GetMonitorPlugin()->AllocRoutine();
58 *io_routine_pointer = io_routine_stack_.top();
59 io_routine_stack_.pop();
60 return 0;
61}
62
63WorkerConfig_t * IORoutineMgr::GetWorkerConfig() {
64 return worker_config_;

Callers 1

runMethod · 0.80

Calls 3

LogErrorFunction · 0.85
AllocRoutineMethod · 0.80
GetMonitorPluginMethod · 0.80

Tested by

no test coverage detected