@@ -557,15 +557,15 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
557
557
// Check for size amplification first.
558
558
Compaction* c;
559
559
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 " );
561
561
} else {
562
562
563
563
// Size amplification is within limits. Try reducing read
564
564
// amplification while maintaining file size ratios.
565
565
unsigned int ratio = options_->compaction_options_universal .size_ratio ;
566
566
567
567
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 " );
569
569
} else {
570
570
// Size amplification and file size ratios are within configured limits.
571
571
// If max read amplification is exceeding configured limits, then force
@@ -574,7 +574,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
574
574
unsigned int num_files = version->files_ [level].size () -
575
575
options_->level0_file_num_compaction_trigger ;
576
576
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 " );
578
578
}
579
579
}
580
580
}
@@ -689,7 +689,7 @@ Compaction* UniversalCompactionPicker::PickCompactionUniversalReadAmp(
689
689
uint64_t sz = (candidate_size * (100L + ratio)) /100 ;
690
690
if (sz < f->file_size ) {
691
691
break ;
692
- }
692
+ }
693
693
if (options_->compaction_options_universal .stop_style == kCompactionStopStyleSimilarSize ) {
694
694
// Similar-size stopping rule: also check the last picked file isn't
695
695
// far larger than the next candidate file.
0 commit comments