From: Ronnie sahlberg Date: Tue, 10 Apr 2007 11:14:55 +0000 (+1000) Subject: rename client.id to client.messenger_id to make the purpose of the field more obvious X-Git-Tag: tevent-0.9.20~348^2~2944^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a0d8c9f0d19d35628d936a5762d0ac81fc165c2;p=thirdparty%2Fsamba.git rename client.id to client.messenger_id to make the purpose of the field more obvious (This used to be ctdb commit 350f14909d5dba6cd9d76d221e263933926cea6c) --- diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c index cfc283ce5a2..ee1eaad5494 100644 --- a/ctdb/common/ctdb_daemon.c +++ b/ctdb/common/ctdb_daemon.c @@ -58,7 +58,7 @@ static void set_non_blocking(int fd) struct ctdb_client { struct ctdb_context *ctdb; int fd; - uint32_t id; + uint32_t messenger_id; struct ctdb_queue *queue; }; @@ -145,7 +145,7 @@ static void client_request_call(struct ctdb_client *client, struct ctdb_req_call */ static void client_register_message(struct ctdb_client *client, struct ctdb_register_call *r) { - client->id = *((uint32_t *)r->data); + client->messenger_id = *((uint32_t *)r->data); } @@ -589,7 +589,7 @@ struct ctdb_call_state *ctdbd_call_send(struct ctdb_db_context *ctdb_db, struct return state; } -int ctdb_register_message_local_id(struct ctdb_context *ctdb, uint32_t id) +int ctdb_register_message_local_id(struct ctdb_context *ctdb, uint32_t messenger_id) { int res; struct ctdb_register_call rc; @@ -608,7 +608,7 @@ int ctdb_register_message_local_id(struct ctdb_context *ctdb, uint32_t id) rc.hdr.ctdb_version = CTDB_VERSION; rc.hdr.operation = CTDB_REGISTER_CALL; rc.datalen=4; - *((uint32_t *)rc.data) = id; + *((uint32_t *)rc.data) = messenger_id; rc.hdr.length = offsetof(struct ctdb_register_call, data) + rc.datalen; /*XXX need to handle the case of partial writes logic for partial writes in tcp/ctdb_tcp_node_write */ diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index 74735a77b29..7f70d5430d6 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -184,7 +184,7 @@ int ctdb_record_store(struct ctdb_record_handle *rec, TDB_DATA data); ctdb daemon what its local identifier is. when in non-daemon mode this is a noop. */ -int ctdb_register_message_local_id(struct ctdb_context *ctdb, uint32_t id); +int ctdb_register_message_local_id(struct ctdb_context *ctdb, uint32_t messenger_id); #endif