diff options
author | Michael Adam <obnox@samba.org> | 2011-12-23 10:37:25 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-12-23 17:39:12 +0100 |
commit | 190b1b240ca191c1e09676082f52ae1434343992 (patch) | |
tree | c119b211ef7b1deafcc61b4fce94692bfd40c917 | |
parent | cb259e6bd13131dc0c2bf0e9e323056c3cc716f1 (diff) | |
download | samba-190b1b240ca191c1e09676082f52ae1434343992.tar.gz samba-190b1b240ca191c1e09676082f52ae1434343992.tar.xz samba-190b1b240ca191c1e09676082f52ae1434343992.zip |
vacuum: improve debugging in insert_record_into_delete_queue()
(This used to be ctdb commit 6e6aaba28ac560d51d7450ebcf99babf868d0aea)
-rw-r--r-- | ctdb/server/ctdb_vacuum.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 23062faed3..e77f160103 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -1441,7 +1441,7 @@ static int insert_record_into_delete_queue(struct ctdb_db_context *ctdb_db, hash = (uint32_t)ctdb_hash(&key); - DEBUG(DEBUG_INFO, (__location__ " Schedule for deletion: db[%s] " + DEBUG(DEBUG_INFO, (__location__ " schedule for deletion: db[%s] " "db_id[0x%08x] " "key_hash[0x%08x] " "lmaster[%u] " @@ -1457,13 +1457,15 @@ static int insert_record_into_delete_queue(struct ctdb_db_context *ctdb_db, (memcmp(kd->key.dptr, key.dptr, key.dsize) != 0)) { DEBUG(DEBUG_INFO, - ("schedule for deletion: Hash collision (0x%08x)." + (__location__ " schedule for deletion: " + "hash collision (0x%08x)." " Skipping the record.\n", hash)); return 0; } else { DEBUG(DEBUG_DEBUG, - ("schedule for deletion: Overwriting entry for " - "key with hash 0x%08x.\n", hash)); + (__location__ " schedule for deletion: " + "updating entry for key with hash 0x%08x.\n", + hash)); } } |