summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-08-15 15:20:36 +1000
committerMartin Schwenke <martins@samba.org>2014-09-05 07:05:10 +0200
commitef59f2e6bbd502f7cb58ad3a74a6448ccd1ebe59 (patch)
tree5096dbd0ab9b53eb011a4d5af8935163a7e6a60b /ctdb/include
parentdeb7bb89b3844f209ef73cc5707fcb4673bf08d7 (diff)
downloadsamba-ef59f2e6bbd502f7cb58ad3a74a6448ccd1ebe59.tar.gz
samba-ef59f2e6bbd502f7cb58ad3a74a6448ccd1ebe59.tar.xz
samba-ef59f2e6bbd502f7cb58ad3a74a6448ccd1ebe59.zip
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>
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 64b59c9313..ef9bd89ad0 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -594,6 +594,7 @@ struct ctdb_db_context {
so we can avoid sending duplicate fetch requests
*/
struct trbt_tree *deferred_fetch;
+ struct trbt_tree *defer_dmaster;
struct ctdb_db_statistics statistics;