From: Sage Weil Date: Tue, 29 Sep 2015 02:51:51 +0000 (-0400) Subject: debug reader X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=834ce6d51133c594b51ef2c69251bae452a90d65;p=rocksdb.git debug reader --- diff --git a/db/log_reader.cc b/db/log_reader.cc index 1ba35ac7..2a6d1700 100644 --- a/db/log_reader.cc +++ b/db/log_reader.cc @@ -322,6 +322,10 @@ unsigned int Reader::ReadPhysicalRecord(Slice* result) { if (try_recycled && db_options_) Log(InfoLogLevel::INFO_LEVEL, db_options_->info_log, "ReadPhysicalRecord file is recycled; using alt CRC\n"); + if (true && db_options_) + Log(InfoLogLevel::INFO_LEVEL, db_options_->info_log, + "ReadPhysicalRecord stored %d expected %d actual %d on log %d\n", + stored_crc, expected_crc, actual_crc, log_number_); if (try_recycled && actual_crc == expected_crc) { // We failed the normal CRC but we matched a recycled CRC.. this // must be a recycled file.