From: Andrew Tridgell Date: Thu, 30 Nov 2006 22:01:11 +0000 (+1100) Subject: need the header changes too X-Git-Tag: tevent-0.9.20~348^2~3009 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=326f2c7f98ff1e5c0d2f9abf1c3ec0f48dbfa75a;p=thirdparty%2Fsamba.git need the header changes too (This used to be ctdb commit 57dd0a1453e99604b3accc6dc2c183c547f37d1b) --- diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index c6bc043266f..624a93975f4 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -88,3 +88,8 @@ int ctdb_attach(struct ctdb_context *ctdb, const char *name, int tdb_flags, int ctdb_call(struct ctdb_context *ctdb, TDB_DATA key, int call_id, TDB_DATA *call_data, TDB_DATA *reply_data); +/* + wait for all nodes to be connected - useful for test code +*/ +void ctdb_connect_wait(struct ctdb_context *ctdb); + diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 582739f6173..653f74ffdcd 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -78,6 +78,7 @@ struct ctdb_context { const char *name; uint32_t vnn; /* our own vnn */ uint32_t num_nodes; + uint32_t num_connected; struct idr_context *idr; struct ctdb_node **nodes; /* array of nodes in the cluster - indexed by vnn */ struct ctdb_registered_call *calls; /* list of registered calls */