From 4c01d6738532696cb83fc2074849ca771029e960 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Feb 2011 00:03:07 +0100 Subject: [PATCH] persistent: reject trans3_control when a commit is already active. This should actually never happen. --- server/ctdb_persistent.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/ctdb_persistent.c b/server/ctdb_persistent.c index e299c9fa..c7a53ca0 100644 --- a/server/ctdb_persistent.c +++ b/server/ctdb_persistent.c @@ -310,6 +310,14 @@ int32_t ctdb_control_trans3_commit(struct ctdb_context *ctdb, return -1; } + if (ctdb_db->persistent_state != NULL) { + DEBUG(DEBUG_ERR, (__location__ " Error: " + "ctdb_control_trans3_commit " + "called while a transaction commit is " + "active. db_id[0x%08x]\n", m->db_id)); + return -1; + } + client = ctdb_reqid_find(ctdb, c->client_id, struct ctdb_client); if (client == NULL) { DEBUG(DEBUG_ERR,(__location__ " can not match persistent_store " -- 2.34.1