server: fix debug message in trans2_commit (refusing persistent store during transaction)
authorMichael Adam <obnox@samba.org>
Thu, 29 Oct 2009 12:48:36 +0000 (13:48 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 29 Oct 2009 22:29:25 +0000 (09:29 +1100)
log the right db_id
also log the client_id

Michael

server/ctdb_persistent.c

index 3197d04b4bfc6bffb00d2d6500c2b09342fa7d43..02ca7c8d9ca7fb3128fb47bb9aeec346c5010cbb 100644 (file)
@@ -138,10 +138,11 @@ int32_t ctdb_control_trans2_commit(struct ctdb_context *ctdb,
        switch (c->opcode) {
        case CTDB_CONTROL_PERSISTENT_STORE:
                if (ctdb_db->transaction_active) {
-                       DEBUG(DEBUG_ERR, (__location__ " trans2_commit client "
-                                         "db_id[0x%08x] transaction active - "
-                                         "refusing persistent store\n",
-                                         client->db_id));
+                       DEBUG(DEBUG_ERR, (__location__ " trans2_commit: a "
+                                         "transaction is active on database "
+                                         "db_id[0x%08x] - refusing persistent "
+                                        " store for client id[0x%08x]\n",
+                                         ctdb_db->db_id, client->client_id));
                        return -1;
                }
                if (client->num_persistent_updates > 0) {