ctdb: server_id_get->server_id_fetch
authorVolker Lendecke <vl@samba.org>
Fri, 10 Oct 2014 06:35:08 +0000 (08:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2015 22:32:07 +0000 (23:32 +0100)
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>
ctdb/client/ctdb_client.c

index da18826fa59d12e64ef5b7231e54c44047ae77ab..533f36f1759e4d967c21b41e56094644115346b1 100644 (file)
@@ -3807,7 +3807,7 @@ struct server_id {
        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;
 
@@ -3957,7 +3957,7 @@ again:
 
        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) {
@@ -4046,7 +4046,7 @@ static bool g_lock_unlock(TALLOC_CTX *mem_ctx,
 
        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)) {