From: Ronnie sahlberg Date: Wed, 11 Apr 2007 09:04:09 +0000 (+1000) Subject: add a vnn field to the ctdb_reply_connect_wait pdu so that we can tell X-Git-Tag: tevent-0.9.20~348^2~2937^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=153bf810261d3307a43418fddc95e62038e2a86e;p=thirdparty%2Fsamba.git add a vnn field to the ctdb_reply_connect_wait pdu so that we can tell non-ctdb-linked clients what the vnn of the local cluster daemon is (This used to be ctdb commit 57fd1aa54b234545e1e465b5ace2ce93fcfbc22a) --- diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c index 590397a2026..6e9fbedb2fa 100644 --- a/ctdb/common/ctdb_daemon.c +++ b/ctdb/common/ctdb_daemon.c @@ -129,6 +129,7 @@ static void daemon_request_connect_wait(struct ctdb_client *client, r.hdr.ctdb_magic = CTDB_MAGIC; r.hdr.ctdb_version = CTDB_VERSION; r.hdr.operation = CTDB_REPLY_CONNECT_WAIT; + r.vnn = ctdb_get_vnn(client->ctdb); r.num_connected = client->ctdb->num_connected; res = ctdb_queue_send(client->queue, (uint8_t *)&r.hdr, r.hdr.length); diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index fb6a2584a96..bd46f36be44 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -289,6 +289,7 @@ struct ctdb_req_connect_wait { struct ctdb_reply_connect_wait { struct ctdb_req_header hdr; + uint32_t vnn; uint32_t num_connected; };