ctdb-daemon: Check packet generation against database generation
authorAmitay Isaacs <amitay@gmail.com>
Tue, 15 Sep 2015 06:50:19 +0000 (16:50 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 7 Oct 2015 12:53:27 +0000 (14:53 +0200)
commit0ff90f4fac74e61192aff100b168e38ce0adfabb
tree85908841c98c7520d002c3a76e8886787066de30
parentd701072c3e2309019a729c908b28c6657b28a2ca
ctdb-daemon: Check packet generation against database generation

CTDB verifies the generation in the packet header matches that of the
current generation.  However, that check now needs to be done where
database context is available.  So add in the check in handlers for
database requests (CTDB_REQ_CALL, CTDB_REQ_DMASTER, CTDB_REPLY_DMASTER
and CTDB_REPLY_CALL).

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/server/ctdb_call.c
ctdb/server/ctdb_server.c