| 198 | } |
| 199 | |
| 200 | int 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 | |
| 214 | PyObject *ActivePyModules::cacheable_get_python(std::string_view what, const bool get_mutable) |
| 215 | { |
no test coverage detected