From: Sage Weil Date: Tue, 29 Sep 2015 02:30:33 +0000 (-0400) Subject: db debug X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afece3338b992d0fc515c2847d4ddf8df3446332;p=rocksdb.git db debug --- diff --git a/db/db_impl.cc b/db/db_impl.cc index af455bea..f286dd9b 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1010,6 +1010,8 @@ Status DBImpl::RecoverLogFiles(const std::vector& 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& 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