summaryrefslogtreecommitdiff
path: root/ctdb/common/ctdb_message.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-04-28 00:31:45 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-04-28 00:31:45 +1000
commit5b4ebe134515e52735c2524d534f32b0690cd6c0 (patch)
treea15e27db3fe8f1f027b9e21e38e03ec5369cedba /ctdb/common/ctdb_message.c
parent7d1b82fd09b9a3f698f56f69c6d7c78ba05c1324 (diff)
downloadsamba-5b4ebe134515e52735c2524d534f32b0690cd6c0.tar.gz
make srvid 64 bits instead of 32 bits
(This used to be ctdb commit 723bcfbba1d5aa711496d37b9658190b78a2d66b)
Diffstat (limited to 'ctdb/common/ctdb_message.c')
-rw-r--r--ctdb/common/ctdb_message.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ctdb/common/ctdb_message.c b/ctdb/common/ctdb_message.c
index cb85d21a605..379af26e03e 100644
--- a/ctdb/common/ctdb_message.c
+++ b/ctdb/common/ctdb_message.c
@@ -32,7 +32,7 @@
/*
this dispatches the messages to the registered ctdb message handler
*/
-static int ctdb_dispatch_message(struct ctdb_context *ctdb, uint32_t srvid, TDB_DATA data)
+static int ctdb_dispatch_message(struct ctdb_context *ctdb, uint64_t srvid, TDB_DATA data)
{
struct ctdb_message_list *ml;
@@ -67,7 +67,7 @@ void ctdb_request_message(struct ctdb_context *ctdb, struct ctdb_req_header *hdr
*/
struct ctdb_local_message {
struct ctdb_context *ctdb;
- uint32_t srvid;
+ uint64_t srvid;
TDB_DATA data;
};
@@ -80,12 +80,12 @@ static void ctdb_local_message_trigger(struct event_context *ev, struct timed_ev
res = ctdb_dispatch_message(m->ctdb, m->srvid, m->data);
if (res != 0) {
- DEBUG(0, (__location__ " Failed to dispatch message for srvid=%u\n", m->srvid));
+ DEBUG(0, (__location__ " Failed to dispatch message for srvid=%llu\n", m->srvid));
}
talloc_free(m);
}
-static int ctdb_local_message(struct ctdb_context *ctdb, uint32_t srvid, TDB_DATA data)
+static int ctdb_local_message(struct ctdb_context *ctdb, uint64_t srvid, TDB_DATA data)
{
struct ctdb_local_message *m;
m = talloc(ctdb, struct ctdb_local_message);
@@ -109,7 +109,7 @@ static int ctdb_local_message(struct ctdb_context *ctdb, uint32_t srvid, TDB_DAT
send a ctdb message
*/
int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t vnn,
- uint32_t srvid, TDB_DATA data)
+ uint64_t srvid, TDB_DATA data)
{
struct ctdb_req_message *r;
int len;
@@ -176,7 +176,7 @@ static int message_handler_destructor(struct ctdb_message_list *m)
*/
int ctdb_register_message_handler(struct ctdb_context *ctdb,
TALLOC_CTX *mem_ctx,
- uint32_t srvid,
+ uint64_t srvid,
ctdb_message_fn_t handler,
void *private_data)
{