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
main
sdong 10 years ago
parent 397b6588bd
commit 9bf40b64d0
  1. 3
      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;
}

Loading…
Cancel
Save