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

Function ceph_cache_map_erase

src/mgr/BaseMgrModule.cc:397–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static PyObject*
398ceph_cache_map_erase(BaseMgrModule *self, PyObject *args)
399{
400 char *what = NULL;
401 dout(10) << __func__ << " called" << dendl;
402 if (!PyArg_ParseTuple(args, "s:ceph_cache_map_erase", &what)) {
403 derr << __func__ << " Invalid args!" << dendl;
404 Py_RETURN_FALSE;
405 }
406 dout(10) << __func__ << " what: " << what << dendl;
407 if (self->py_modules->ceph_cache_map_erase(what) < 0) {
408 dout(10) << __func__ << " failed to erase cache map entry: " << what << dendl;
409 Py_RETURN_FALSE;
410 }
411 Py_RETURN_TRUE;
412}
413
414
415static PyObject*

Callers

nothing calls this directly

Calls 1

ceph_cache_map_eraseMethod · 0.80

Tested by

no test coverage detected