Py_RETURN_NONE;
}
+static PyObject*
+ceph_notify_all(BaseMgrModule *self, PyObject *args)
+{
+ char *type = nullptr;
+ char *id = nullptr;
+ if (!PyArg_ParseTuple(args, "ss:ceph_notify_all", &type, &id)) {
+ return nullptr;
+ }
+
+ without_gil([&] {
+ self->py_modules->notify_all(type, id);
+ });
+ return nullptr;
+}
static PyObject*
ceph_state_get(BaseMgrModule *self, PyObject *args)
{"_ceph_get", (PyCFunction)ceph_state_get, METH_VARARGS,
"Get a cluster object"},
+ {"_ceph_notify_all", (PyCFunction)ceph_notify_all, METH_VARARGS,
+ "notify all modules"},
+
{"_ceph_get_server", (PyCFunction)ceph_get_server, METH_VARARGS,
"Get a server object"},
def _ceph_cluster_log(self, channel: str, priority: int, message: str) -> None: ...
def _ceph_get_context(self) -> object: ...
def _ceph_get(self, data_name: str) -> Any: ...
+ def _ceph_notify_all(self, what: str, tag: str) -> None: ...
def _ceph_get_server(self, hostname: Optional[str]) -> Union[ServerInfoT,
List[ServerInfoT]]: ...
def _ceph_get_perf_schema(self, svc_type: str, svc_name: str) -> Dict[str, Any]: ...