From 8fcceb2a6ffbb3dc8c75763951a2536a3571b08e Mon Sep 17 00:00:00 2001 From: ideawu Date: Mon, 20 Apr 2015 12:39:14 +0800 Subject: [PATCH 1/2] log compaction output file's level along with number --- db/db_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 49b9595..7912174 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -821,8 +821,9 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact, delete iter; if (s.ok()) { Log(options_.info_log, - "Generated table #%llu: %lld keys, %lld bytes", + "Generated table #%llu@%d: %lld keys, %lld bytes", (unsigned long long) output_number, + compact->compaction->level(), (unsigned long long) current_entries, (unsigned long long) current_bytes); } From 76bba139c083f7d54daa170165cad3e23c9d3ec8 Mon Sep 17 00:00:00 2001 From: ideawu Date: Mon, 20 Apr 2015 12:41:01 +0800 Subject: [PATCH 2/2] fix indent --- db/db_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 7912174..a206cc4 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -823,7 +823,7 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact, Log(options_.info_log, "Generated table #%llu@%d: %lld keys, %lld bytes", (unsigned long long) output_number, - compact->compaction->level(), + compact->compaction->level(), (unsigned long long) current_entries, (unsigned long long) current_bytes); }