summaryrefslogtreecommitdiffstats
path: root/ctdb/common/ctdb_message.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-04-28 01:06:26 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-04-28 01:06:26 +1000
commit916c55ec2ffcb28ff65a23cef21aa3333ce43dd6 (patch)
tree9e67582172c9f0f90fa324e9675c1253eeec9efe /ctdb/common/ctdb_message.c
parent5b4ebe134515e52735c2524d534f32b0690cd6c0 (diff)
downloadsamba-916c55ec2ffcb28ff65a23cef21aa3333ce43dd6.tar.gz
samba-916c55ec2ffcb28ff65a23cef21aa3333ce43dd6.tar.xz
samba-916c55ec2ffcb28ff65a23cef21aa3333ce43dd6.zip
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)
Diffstat (limited to 'ctdb/common/ctdb_message.c')
-rw-r--r--ctdb/common/ctdb_message.c1
1 files changed, 1 insertions, 0 deletions
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;