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

Method ceph_cache_map_erase

src/mgr/ActivePyModules.cc:200–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200int ActivePyModules::ceph_cache_map_erase(std::string_view what)
201{
202 if (!api_cache.exists(what)) {
203 dout(10) << " what: " << what << " not in cache" << dendl;
204 return -ENOENT;
205 } else if (!api_cache.is_cacheable(what)) {
206 dout(10) << " what: " << what << " not cacheable" << dendl;
207 return -EINVAL;
208 }
209 dout(10) << " what: " << what << dendl;
210 api_cache.erase(what);
211 return 0;
212}
213
214PyObject *ActivePyModules::cacheable_get_python(std::string_view what, const bool get_mutable)
215{

Callers 1

ceph_cache_map_eraseFunction · 0.80

Calls 3

is_cacheableMethod · 0.80
existsMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected