From 9529301503c043aaf8d3c39d3b0f014aaa0cc123 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 24 Aug 2012 09:05:06 +0200 Subject: [PATCH] s3:lib: readd the CTDB_CONTROL_CHECK_SRVIDS optimization to serverids_exist() metze --- source3/lib/serverid.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 3392e83c89a..cb495205640 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -340,6 +340,51 @@ bool serverids_exist(const struct server_id *ids, int num_ids, bool *results) remote_num += 1; } +#ifdef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL + if (remote_num != 0) { + int old_remote_num = remote_num; + + remote_num = 0; + todo_num = 0; + + for (t=0; t