summaryrefslogtreecommitdiffstats
path: root/ctdb/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-07 13:34:18 +1000
committerAndrew Tridgell <tridge@samba.org>2008-08-07 13:34:18 +1000
commitbbedba23c73f3c537783608c95830db0fab545ea (patch)
tree132ebc5f835d0772fd1510a0842e3dba9e4816b2 /ctdb/client
parent78acc59784522f52fe75b9a6dd7784595035a93e (diff)
downloadsamba-bbedba23c73f3c537783608c95830db0fab545ea.tar.gz
samba-bbedba23c73f3c537783608c95830db0fab545ea.tar.xz
samba-bbedba23c73f3c537783608c95830db0fab545ea.zip
cover some corner cases where the persistent database could become
inconsistent (This used to be ctdb commit c76c214be401cb116265ed17ffe6c77c979ded82)
Diffstat (limited to 'ctdb/client')
-rw-r--r--ctdb/client/ctdb_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c
index 48eb19d969e..cec16d1f9b2 100644
--- a/ctdb/client/ctdb_client.c
+++ b/ctdb/client/ctdb_client.c
@@ -3235,6 +3235,9 @@ again:
sleep(1);
if (ctdb_replay_transaction(h) != 0) {
DEBUG(DEBUG_ERR,(__location__ " Failed to replay transaction\n"));
+ ctdb_control(ctdb, CTDB_CURRENT_NODE, h->ctdb_db->db_id,
+ CTDB_CONTROL_TRANS2_ERROR, CTDB_CTRL_FLAG_NOREPLY,
+ tdb_null, NULL, NULL, NULL, NULL, NULL);
talloc_free(h);
return -1;
}