server_id_get with the next patch will be a global parsing function.
I've decided to rename this here in ctdb, as it's only a static function
in ctdb_client.c and apparently not intended for wider use. Please speak
up if you don't like this :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
uint64_t unique_id;
};
-static struct server_id server_id_get(struct ctdb_context *ctdb, uint32_t reqid)
+static struct server_id server_id_fetch(struct ctdb_context *ctdb, uint32_t reqid)
{
struct server_id id;
talloc_free(data.dptr);
- id = server_id_get(ctdb_db->ctdb, reqid);
+ id = server_id_fetch(ctdb_db->ctdb, reqid);
i = 0;
while (i < locks->num) {
talloc_free(data.dptr);
- id = server_id_get(ctdb_db->ctdb, reqid);
+ id = server_id_fetch(ctdb_db->ctdb, reqid);
for (i=0; i<locks->num; i++) {
if (ctdb_server_id_equal(&locks->lock[i].id, &id)) {