vacuum: improve logging in insert_record_into_delete_queue()
authorMichael Adam <obnox@samba.org>
Fri, 23 Dec 2011 16:10:20 +0000 (17:10 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 12 Jan 2012 07:50:41 +0000 (08:50 +0100)
(cherry picked from commit db59ac2ee6a9f5f7f088ebbc5e2800d9e57aae17)

server/ctdb_vacuum.c

index 8d4a9f8dd5f4d42bf04884531eb1e585e873c858..cabffab504b8278a36cce13a494dac11edcf8f86 100644 (file)
@@ -1466,13 +1466,13 @@ static int insert_record_into_delete_queue(struct ctdb_db_context *ctdb_db,
                {
                        DEBUG(DEBUG_INFO,
                              (__location__ " schedule for deletion: "
-                              "hash collision (0x%08x)."
-                              " Skipping the record.\n", hash));
+                              "hash collision for key hash [0x%08x]. "
+                              "Skipping the record.\n", hash));
                        return 0;
                } else {
                        DEBUG(DEBUG_DEBUG,
                              (__location__ " schedule for deletion: "
-                              "updating entry for key with hash 0x%08x.\n",
+                              "updating entry for key with hash [0x%08x].\n",
                               hash));
                }
        }
@@ -1483,7 +1483,7 @@ static int insert_record_into_delete_queue(struct ctdb_db_context *ctdb_db,
        if (ret != 0) {
                DEBUG(DEBUG_INFO,
                      (__location__ " schedule for deletion: error "
-                      "inserting key with hash 0x%08x into delete queue\n",
+                      "inserting key with hash [0x%08x] into delete queue\n",
                       hash));
                return -1;
        }