diff options
author | Volker Lendecke <vl@samba.org> | 2014-10-10 08:35:08 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-02-13 23:32:07 +0100 |
commit | 975b9b03045eaf2654a77ecdf4a0c391999d7f67 (patch) | |
tree | e16b3335a35fe5f7a4d8e0a7b987a78881f125a1 | |
parent | f4cd1eb42487efde580de74e975a9e7cc67e03ea (diff) | |
download | samba-975b9b03045eaf2654a77ecdf4a0c391999d7f67.tar.gz samba-975b9b03045eaf2654a77ecdf4a0c391999d7f67.tar.xz samba-975b9b03045eaf2654a77ecdf4a0c391999d7f67.zip |
ctdb: server_id_get->server_id_fetch
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>
-rw-r--r-- | ctdb/client/ctdb_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index da18826fa5..533f36f175 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -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)) { |