summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mumford <cmumford@cmumford.com>2016-01-12 11:30:32 -0800
committerChris Mumford <cmumford@cmumford.com>2016-01-12 11:30:32 -0800
commitdac40d25f6ce69c8b6685ab09f240cb63cfd5ab3 (patch)
tree368e1beab2dec605c9966e6aa8ba8ae78e0539f6
parent8ec241a3b0afa645b610be5b2cc06d8f6f88a12b (diff)
parent76bba139c083f7d54daa170165cad3e23c9d3ec8 (diff)
downloadleveldb-dac40d25f6ce69c8b6685ab09f240cb63cfd5ab3.tar.gz
Merge pull request #284 from ideawu/master
log compaction output file's level along with number
-rw-r--r--db/db_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/db_impl.cc b/db/db_impl.cc
index dc645d0..60f4e66 100644
--- a/db/db_impl.cc
+++ b/db/db_impl.cc
@@ -851,8 +851,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);
}