MCPcopy Create free account
hub / github.com/ceph/ceph / clear

Method clear

src/mgr/MgrMapCache.cc:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void 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
229void MgrMapCache<PyObject*>::handle_conf_change(
230 const ConfigProxy& conf, const std::set<std::string>& changed) {

Callers 15

~MgrMapCacheMethod · 0.95
notify_osdmapMethod · 0.45
remove_all_queriesMethod · 0.45
get_counters_genericMethod · 0.45
decodeMethod · 0.45
decodeMethod · 0.45
set_metadataMethod · 0.45
maybe_readyMethod · 0.45
handle_openMethod · 0.45

Calls 2

drainMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected