From dc7d0f688317593ffa58badcc0ed7b10b2047c5e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 22 Aug 2012 13:28:49 +0200 Subject: [PATCH] s3:lib: inline processes_exist() into serverids_exist() metze --- source3/lib/serverid.c | 113 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 99 insertions(+), 14 deletions(-) diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index 1cda03b3a63..8d6dc1f8890 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -264,46 +264,131 @@ bool serverid_exists(const struct server_id *id) bool serverids_exist(const struct server_id *ids, int num_ids, bool *results) { + int *todo_idx = NULL; + struct server_id *todo_ids = NULL; + bool *todo_results = NULL; + int todo_num = 0; + int *remote_idx = NULL; + int remote_num = 0; + int t, idx; + bool result = false; struct db_context *db; - int i; - - if (!processes_exist(ids, num_ids, results)) { - return false; - } db = serverid_db(); if (db == NULL) { return false; } - for (i=0; i