]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
debug reader
authorSage Weil <sage@redhat.com>
Tue, 29 Sep 2015 02:51:51 +0000 (22:51 -0400)
committerSage Weil <sage@redhat.com>
Tue, 29 Sep 2015 02:51:51 +0000 (22:51 -0400)
db/log_reader.cc

index 1ba35ac7162fa1cf3866d54ead1dc6d12e7e6d9c..2a6d17003d81b092e5c459e7dffa23908fbfb3f1 100644 (file)
@@ -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.