Skip to content

Commit e2dd148

Browse files
committed
Fix compile fail introduced by merge
1 parent a329dd1 commit e2dd148

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db/compaction_picker.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,15 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
557557
// Check for size amplification first.
558558
Compaction* c;
559559
if ((c = PickCompactionUniversalSizeAmp(version, score)) != nullptr) {
560-
Log(options_->info_log, "Universal: compacting for size amp\n");
560+
Log(logger_, "Universal: compacting for size amp\n");
561561
} else {
562562

563563
// Size amplification is within limits. Try reducing read
564564
// amplification while maintaining file size ratios.
565565
unsigned int ratio = options_->compaction_options_universal.size_ratio;
566566

567567
if ((c = PickCompactionUniversalReadAmp(version, score, ratio, UINT_MAX)) != nullptr) {
568-
Log(options_->info_log, "Universal: compacting for size ratio\n");
568+
Log(logger_, "Universal: compacting for size ratio\n");
569569
} else {
570570
// Size amplification and file size ratios are within configured limits.
571571
// If max read amplification is exceeding configured limits, then force
@@ -574,7 +574,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
574574
unsigned int num_files = version->files_[level].size() -
575575
options_->level0_file_num_compaction_trigger;
576576
if ((c = PickCompactionUniversalReadAmp(version, score, UINT_MAX, num_files)) != nullptr) {
577-
Log(options_->info_log, "Universal: compacting for file num\n");
577+
Log(logger_, "Universal: compacting for file num\n");
578578
}
579579
}
580580
}
@@ -689,7 +689,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalReadAmp(
689689
uint64_t sz = (candidate_size * (100L + ratio)) /100;
690690
if (sz < f->file_size) {
691691
break;
692-
}
692+
}
693693
if (options_->compaction_options_universal.stop_style == kCompactionStopStyleSimilarSize) {
694694
// Similar-size stopping rule: also check the last picked file isn't
695695
// far larger than the next candidate file.

0 commit comments

Comments
 (0)