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

Method erase

src/mgr/MgrMapCache.cc:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void MgrMapCache<PyObject*>::erase(std::string_view key) noexcept {
208 if (!this->is_cacheable(key)) return;
209 PyObject* o = nullptr;
210 if (!this->extract(key, &o)) return;
211
212 Py_AddPendingCall(+[](void* p){ Py_DECREF((PyObject*)p); return 0; }, o);
213 dout(20) << ": erased key: " << key
214 << " hit/miss:"
215 << CacheImp::get_hits() << "/"
216 << CacheImp::get_misses() << dendl;
217}
218
219void MgrMapCache<PyObject*>::clear() noexcept {
220 std::vector<PyObject*> to_drop;

Callers 15

monitoring_loopMethod · 0.45
handle_configMethod · 0.45
remove_queryMethod · 0.45
rm_life_expectancyMethod · 0.45
set_wear_levelMethod · 0.45
_eraseMethod · 0.45
_erase_deviceMethod · 0.45
clear_updatingMethod · 0.45
ms_handle_resetMethod · 0.45
handle_reportMethod · 0.45

Calls 2

extractMethod · 0.95
is_cacheableMethod · 0.80

Tested by

no test coverage detected