MCPcopy Create free account
hub / github.com/alibaba/tair / clean_plugins

Method clean_plugins

src/plugin/plugin_manager.cpp:158–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void plugins_manager::clean_plugins(plugins_root *root) {
159 log_debug("p_root = %p", root);
160 if (root == NULL) return;
161 map<int, plugin_handler *>::iterator it = root->request_plugins.begin();
162 for (; it != root->request_plugins.end(); it++) {
163 log_debug("request clean plugin %s", (it->second)->get_dll_name().c_str());
164 (it->second)->get_instance()->clean();
165 delete it->second;
166 root->response_plugins.erase(it->first);
167 }
168 for (it = root->response_plugins.begin();
169 it != root->response_plugins.end(); it++) {
170 log_debug("response clean plugin %s", (it->second)->get_dll_name().c_str());
171 (it->second)->get_instance()->clean();
172 delete it->second;
173 }
174 delete root;
175}
176
177plugins_manager::~plugins_manager() {
178 {

Callers

nothing calls this directly

Calls 5

get_dll_nameMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
cleanMethod · 0.45
get_instanceMethod · 0.45

Tested by

no test coverage detected