From 8fcceb2a6ffbb3dc8c75763951a2536a3571b08e Mon Sep 17 00:00:00 2001 From: ideawu Date: Mon, 20 Apr 2015 12:39:14 +0800 Subject: [PATCH] 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); }