This will be the replacement for messaging_ctdbd_connection(). This does not
default to initializing messaging but panics. We just don't have correct
default arguments for messaging_init. Implicit multiple messaging and event
contexts is a bug also.
It *might* be that some tools fail due to this, but this needs fixing in
different ways. See the previous commit for smbpasswd.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
flags = tevent_fd_get_flags(fde->fde);
return (flags != 0);
}
+
+struct ctdbd_connection *messaging_ctdb_connection(void)
+{
+ if (global_ctdb_context == NULL) {
+ smb_panic("messaging not initialized\n");
+ }
+ return global_ctdb_context->conn;
+}
TALLOC_CTX *mem_ctx, struct tevent_context *ev);
bool messaging_ctdb_fde_active(struct messaging_ctdb_fde *fde);
+struct ctdbd_connection *messaging_ctdb_connection(void);
+
#endif