Fix compile fail introduced by merge
This commit is contained in:
parent
a329dd1b25
commit
e2dd148a8b
@ -557,7 +557,7 @@ Compaction* UniversalCompactionPicker::PickCompaction(Version* version) {
|
|||||||
// Check for size amplification first.
|
// Check for size amplification first.
|
||||||
Compaction* c;
|
Compaction* c;
|
||||||
if ((c = PickCompactionUniversalSizeAmp(version, score)) != nullptr) {
|
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 {
|
} else {
|
||||||
|
|
||||||
// Size amplification is within limits. Try reducing read
|
// 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;
|
unsigned int ratio = options_->compaction_options_universal.size_ratio;
|
||||||
|
|
||||||
if ((c = PickCompactionUniversalReadAmp(version, score, ratio, UINT_MAX)) != nullptr) {
|
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 {
|
} else {
|
||||||
// Size amplification and file size ratios are within configured limits.
|
// Size amplification and file size ratios are within configured limits.
|
||||||
// If max read amplification is exceeding configured limits, then force
|
// 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() -
|
unsigned int num_files = version->files_[level].size() -
|
||||||
options_->level0_file_num_compaction_trigger;
|
options_->level0_file_num_compaction_trigger;
|
||||||
if ((c = PickCompactionUniversalReadAmp(version, score, UINT_MAX, num_files)) != nullptr) {
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user