client: add a debug message when a transaction_commit needs to be retried
authorMichael Adam <obnox@samba.org>
Thu, 29 Oct 2009 21:19:19 +0000 (22:19 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 30 Oct 2009 11:00:42 +0000 (22:00 +1100)
Michael

client/ctdb_client.c

index 8faa5ddd22d791549605ea7bd802fd30f8109ee4..b03e0f85fd9bdec404b3f811cdd63ea849ebdfcf 100644 (file)
@@ -3497,6 +3497,9 @@ again:
                           &timeout, NULL);
        if (ret != 0 || status != 0) {
                tdb_transaction_cancel(h->ctdb_db->ltdb->tdb);
+               DEBUG(DEBUG_WARNING, (__location__ " transaction commit%s failed"
+                                     ", retrying after 1 second...\n",
+                                     (retries==0)?"":"retry "));
                sleep(1);
 
                if (ret != 0) {