ctdb-daemon: Defer all calls when processing dmaster packets
authorAmitay Isaacs <amitay@gmail.com>
Fri, 15 Aug 2014 05:20:36 +0000 (15:20 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 5 Sep 2014 05:05:10 +0000 (07:05 +0200)
commitef59f2e6bbd502f7cb58ad3a74a6448ccd1ebe59
tree5096dbd0ab9b53eb011a4d5af8935163a7e6a60b
parentdeb7bb89b3844f209ef73cc5707fcb4673bf08d7
ctdb-daemon: Defer all calls when processing dmaster packets

When CTDB receives DMASTER_REQUEST or DMASTER_REPLY packet, the specified
record needs to be updated as soon as possible to avoid inconsistent
dmaster information between nodes.  During this time, queue up all calls
for that record and process them only after dmaster request/reply has
been processed.

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