From 9bf40b64d030b36cefe83ac39c1078c43f899447 Mon Sep 17 00:00:00 2001 From: sdong Date: Mon, 20 Apr 2015 11:15:35 -0700 Subject: [PATCH] Print max score in level summary Summary: Add more logging to help debugging issues. Test Plan: Run test suites Reviewers: yhchiang, rven, igor Reviewed By: igor Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D37401 --- db/version_set.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/version_set.cc b/db/version_set.cc index 55950e0b4..aa8256a58 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -1494,7 +1494,8 @@ const char* VersionStorageInfo::LevelSummary( // overwrite the last space --len; } - snprintf(scratch->buffer + len, sizeof(scratch->buffer) - len, "]"); + snprintf(scratch->buffer + len, sizeof(scratch->buffer) - len, + "] max score %.2f", compaction_score_[0]); return scratch->buffer; }