diff options
| author | Andrew Tridgell <tridge@samba.org> | 2007-02-09 12:45:58 +1100 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2007-02-09 12:45:58 +1100 |
| commit | f71f62fabdcfaf8c36afa9ed361eed57afefe45f (patch) | |
| tree | a00a08ba7488592e8b931852a469def2c7b5b391 /ctdb/include | |
| parent | e372d2d5fb563adc82bb610c0d2cb3b00653a779 (diff) | |
changed ctdb_bench.c to use messages instead of calls
(This used to be ctdb commit d147a434f827f83cf90228a3ed37338db8e9df13)
Diffstat (limited to 'ctdb/include')
| -rw-r--r-- | ctdb/include/ctdb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 335af83215..efb12c5daa 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -127,6 +127,11 @@ void ctdb_wait_loop(struct ctdb_context *ctdb); /* return vnn of this node */ uint32_t ctdb_get_vnn(struct ctdb_context *ctdb); +/* + return the number of nodes +*/ +uint32_t ctdb_get_num_nodes(struct ctdb_context *ctdb); + /* setup a handler for ctdb messages */ typedef void (*ctdb_message_fn_t)(struct ctdb_context *, uint32_t srvid, TDB_DATA data, void *); @@ -135,6 +140,6 @@ int ctdb_set_message_handler(struct ctdb_context *ctdb, ctdb_message_fn_t handle /* send a ctdb message */ int ctdb_send_message(struct ctdb_context *ctdb, uint32_t vnn, - uint32_t srvid, uint32_t msg_type, TDB_DATA data); + uint32_t srvid, TDB_DATA data); #endif |
