client: improve two error messages in ctdb_transaction_commit().
authorMichael Adam <obnox@samba.org>
Thu, 3 Dec 2009 23:19:44 +0000 (00:19 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 4 Dec 2009 14:06:54 +0000 (15:06 +0100)
Michael

client/ctdb_client.c

index 48b9b5a311f1548424e4c4a2ebe65b8ef546ba2c..82f156d061ef26742fff6d419159a53b1eda8ddc 100644 (file)
@@ -3550,7 +3550,11 @@ again:
                }               
 
                if (ctdb_replay_transaction(h) != 0) {
-                       DEBUG(DEBUG_ERR,(__location__ " Failed to replay transaction\n"));
+                       DEBUG(DEBUG_ERR, (__location__ " Failed to replay "
+                                         "transaction on db 0x%08x, "
+                                         "failure control =%u\n",
+                                         h->ctdb_db->db_id,
+                                         (unsigned)failure_control));
                        ctdb_control(ctdb, CTDB_CURRENT_NODE, h->ctdb_db->db_id, 
                                     failure_control, CTDB_CTRL_FLAG_NOREPLY, 
                                     tdb_null, NULL, NULL, NULL, NULL, NULL);           
@@ -3565,7 +3569,11 @@ again:
        /* do the real commit locally */
        ret = tdb_transaction_commit(h->ctdb_db->ltdb->tdb);
        if (ret != 0) {
-               DEBUG(DEBUG_ERR,(__location__ " Failed to commit transaction\n"));
+               DEBUG(DEBUG_ERR, (__location__ " Failed to commit transaction "
+                                 "on db id 0x%08x locally, "
+                                 "failure_control=%u\n",
+                                 h->ctdb_db->db_id,
+                                 (unsigned)failure_control));
                ctdb_control(ctdb, CTDB_CURRENT_NODE, h->ctdb_db->db_id, 
                             failure_control, CTDB_CTRL_FLAG_NOREPLY, 
                             tdb_null, NULL, NULL, NULL, NULL, NULL);