Initialise ctdb->ev in ctdb_cmdline_client_stub().
Add a comment to tevent_context_init_stub() explaining why the ctdb
context is initialised there instead of ctdb_cmdline_client_stub().
This information is in the git log but that doesn't help someone who
is reading the code.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
DEBUGLEVEL = 0;
}
+ ctdb_global->ev = ev;
+
return ctdb_global;
}
{
struct ctdb_context *ctdb;
+ /* This needs to be initialised prior to the client setup, for
+ the xpnn stub */
ctdb = talloc_zero(NULL, struct ctdb_context);
ctdb_set_socketname(ctdb, "fake");