From 916c55ec2ffcb28ff65a23cef21aa3333ce43dd6 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 28 Apr 2007 01:06:26 +1000 Subject: add a generation field to the pdu header. this will allow a node to verify that a received pdu is sent from a node in the same generation instance of a cluster. (This used to be ctdb commit e32d3ca9a622237c4e2622de98825c0962760d48) --- ctdb/common/ctdb_message.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ctdb/common/ctdb_message.c') diff --git a/ctdb/common/ctdb_message.c b/ctdb/common/ctdb_message.c index 379af26e03e..4f582598906 100644 --- a/ctdb/common/ctdb_message.c +++ b/ctdb/common/ctdb_message.c @@ -127,6 +127,7 @@ int ctdb_daemon_send_message(struct ctdb_context *ctdb, uint32_t vnn, r->hdr.length = len; r->hdr.ctdb_magic = CTDB_MAGIC; r->hdr.ctdb_version = CTDB_VERSION; + r->hdr.generation= ctdb->vnn_map->generation; r->hdr.operation = CTDB_REQ_MESSAGE; r->hdr.destnode = vnn; r->hdr.srcnode = ctdb->vnn; -- cgit