From afece3338b992d0fc515c2847d4ddf8df3446332 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 28 Sep 2015 22:30:33 -0400 Subject: [PATCH] db debug --- db/db_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3