summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-10-31 16:30:38 +0100
committerVolker Lendecke <vlendec@samba.org>2011-11-30 12:47:27 +0100
commit99f2177e8fbf7f288fa896a0c64bfb6ae03b9ada (patch)
treeb06560ce319132a7887060f1674fe838c6c18dfd /source3/include
parentda992be64f39364fbb8bca26e9421c7a36c49ac6 (diff)
downloadsamba-99f2177e8fbf7f288fa896a0c64bfb6ae03b9ada.tar.gz
samba-99f2177e8fbf7f288fa896a0c64bfb6ae03b9ada.tar.bz2
samba-99f2177e8fbf7f288fa896a0c64bfb6ae03b9ada.zip
s3-ctdb: Make use of CTDB_CONTROL_CHECK_SRVIDS
This should be a lot quicker than PROCESS_EXISTS followed by looking at serverid.tdb Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Nov 30 12:47:27 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ctdbd_conn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h
index 1d52577fe8..9a3c27cdb9 100644
--- a/source3/include/ctdbd_conn.h
+++ b/source3/include/ctdbd_conn.h
@@ -46,6 +46,9 @@ bool ctdbd_process_exists(struct ctdbd_connection *conn, uint32 vnn,
bool ctdb_processes_exist(struct ctdbd_connection *conn,
const struct server_id *pids, int num_pids,
bool *results);
+bool ctdb_serverids_exist(struct ctdbd_connection *conn,
+ const struct server_id *pids, unsigned num_pids,
+ bool *results);
char *ctdbd_dbpath(struct ctdbd_connection *conn,
TALLOC_CTX *mem_ctx, uint32_t db_id);
@@ -79,5 +82,6 @@ NTSTATUS ctdbd_control_local(struct ctdbd_connection *conn, uint32 opcode,
int *cstatus);
NTSTATUS ctdb_watch_us(struct ctdbd_connection *conn);
NTSTATUS ctdb_unwatch(struct ctdbd_connection *conn);
+NTSTATUS register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid);
#endif /* _CTDBD_CONN_H */