Fix compile fail introduced by merge

This commit is contained in:
Igor Canadi 2014-03-05 12:47:44 -08:00
parent a329dd1b25
commit e2dd148a8b

View File

@ -557,7 +557,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
// Check for size amplification first.
Compaction* c;
if ((c = PickCompactionUniversalSizeAmp(version, score)) != nullptr) {
Log(options_->info_log, "Universal: compacting for size amp\n");
Log(logger_, "Universal: compacting for size amp\n");
} else {
// Size amplification is within limits. Try reducing read
@ -565,7 +565,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
unsigned int ratio = options_->compaction_options_universal.size_ratio;
if ((c = PickCompactionUniversalReadAmp(version, score, ratio, UINT_MAX)) != nullptr) {
Log(options_->info_log, "Universal: compacting for size ratio\n");
Log(logger_, "Universal: compacting for size ratio\n");
} else {
// Size amplification and file size ratios are within configured limits.
// If max read amplification is exceeding configured limits, then force
@ -574,7 +574,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
unsigned int num_files = version->files_[level].size() -
options_->level0_file_num_compaction_trigger;
if ((c = PickCompactionUniversalReadAmp(version, score, UINT_MAX, num_files)) != nullptr) {
Log(options_->info_log, "Universal: compacting for file num\n");
Log(logger_, "Universal: compacting for file num\n");
}
}
}