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

Method MasterIORoutine

phxsqlproxy/io_routine.cpp:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174//IORoutine end
175
176MasterIORoutine::MasterIORoutine(IORoutineMgr * routine_mgr, GroupStatusCache * group_status_cache) :
177 IORoutine(routine_mgr) {
178 PHXSqlProxyConfig * config = routine_mgr->GetConfig();
179 WorkerConfig_t * worker_config = config->GetMasterWorkerConfig();
180 io_router_ = new MasterIORouter(config, worker_config, group_status_cache);
181 io_channel_ = new MasterIOChannel(config, worker_config, group_status_cache);
182 proxy_protocol_handler_ = new ProxyProtocolHandler(config, worker_config, group_status_cache);
183}
184
185MasterIORoutine::~MasterIORoutine() {
186}

Callers

nothing calls this directly

Calls 2

GetMasterWorkerConfigMethod · 0.80
GetConfigMethod · 0.45

Tested by

no test coverage detected