| 217 | } |
| 218 | |
| 219 | void MgrMapCache<PyObject*>::clear() noexcept { |
| 220 | std::vector<PyObject*> to_drop; |
| 221 | this->drain(to_drop); |
| 222 | if (to_drop.empty()) return; |
| 223 | PyGILState_STATE st = PyGILState_Ensure(); |
| 224 | for (auto* o : to_drop) Py_DECREF(o); |
| 225 | PyGILState_Release(st); |
| 226 | dout(20) << ": Cache cleared" << dendl; |
| 227 | } |
| 228 | |
| 229 | void MgrMapCache<PyObject*>::handle_conf_change( |
| 230 | const ConfigProxy& conf, const std::set<std::string>& changed) { |
no test coverage detected