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

Method SetMonitorPlugin

phxsqlproxy/plugin/monitor/monitor_plugin.cpp:124–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void MonitorPluginEntry::SetMonitorPlugin(MonitorPlugin * monitor) {
125 if (!is_set_) {
126 delete monitor_plugin_, monitor_plugin_ = NULL;
127 }
128 monitor_plugin_ = monitor;
129 is_set_ = true;
130}
131
132MonitorPlugin * MonitorPluginEntry::GetMonitorPlugin() {
133 return monitor_plugin_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected