|
@ -1104,13 +1104,11 @@ int VersionSet::NumLevelFiles(int level) const { |
|
|
|
|
|
|
|
|
const char* VersionSet::LevelSummary(LevelSummaryStorage* scratch) const { |
|
|
const char* VersionSet::LevelSummary(LevelSummaryStorage* scratch) const { |
|
|
// Update code if kNumLevels changes
|
|
|
// Update code if kNumLevels changes
|
|
|
static_assert(config::kNumLevels == 7, ""); |
|
|
|
|
|
|
|
|
static_assert(config::kNumLevels == 3, ""); |
|
|
std::snprintf( |
|
|
std::snprintf( |
|
|
scratch->buffer, sizeof(scratch->buffer), "files[ %d %d %d %d %d %d %d ]", |
|
|
|
|
|
|
|
|
scratch->buffer, sizeof(scratch->buffer), "files[ %d %d %d ]", |
|
|
int(current_->files_[0].size()), int(current_->files_[1].size()), |
|
|
int(current_->files_[0].size()), int(current_->files_[1].size()), |
|
|
int(current_->files_[2].size()), int(current_->files_[3].size()), |
|
|
|
|
|
int(current_->files_[4].size()), int(current_->files_[5].size()), |
|
|
|
|
|
int(current_->files_[6].size())); |
|
|
|
|
|
|
|
|
int(current_->files_[2].size())); |
|
|
return scratch->buffer; |
|
|
return scratch->buffer; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|