| 395 | } |
| 396 | |
| 397 | static PyObject* |
| 398 | ceph_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 | |
| 415 | static PyObject* |
nothing calls this directly
no test coverage detected