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

index af455bea9233e908967e3d8792bb16526c2e15e2..f286dd9bbc7e17298df3e59900b266ece153a956 100644 (file)
@@ -1010,6 +1010,8 @@ Status DBImpl::RecoverLogFiles(const std::vector<uint64_t>& log_numbers,
     Slice record;
     WriteBatch batch;
     while (reader.ReadRecord(&record, &scratch) && status.ok()) {
+      Log(InfoLogLevel::INFO_LEVEL,
+         db_options_.info_log, " read one record size %d", record.size());
       if (record.size() < 12) {
         reporter.Corruption(record.size(),
                             Status::Corruption("log record too small"));
@@ -1034,6 +1036,8 @@ Status DBImpl::RecoverLogFiles(const std::vector<uint64_t>& log_numbers,
       if (last_seq > *max_sequence) {
         *max_sequence = last_seq;
       }
+      Log(InfoLogLevel::INFO_LEVEL,
+         db_options_.info_log, "  last_seq %d", last_seq);
 
       if (!read_only) {
         // we can do this because this is called before client has access to the