| 50 | } |
| 51 | |
| 52 | int 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 | |
| 63 | WorkerConfig_t * IORoutineMgr::GetWorkerConfig() { |
| 64 | return worker_config_; |
no test coverage detected