Don't need to UpdateFilesByCompactionPri for kCompactionStyleNone

Summary: Closes https://github.com/facebook/rocksdb/pull/3563

Differential Revision: D7154653

Pulled By: ajkr

fbshipit-source-id: 4f32fb1b02451a934504c40be22b07fb1f2deb9c
main
Huachao Huang 7 years ago committed by Facebook Github Bot
parent 5d68243e61
commit 9cb4856dbd
  1. 3
      db/version_set.cc

@ -1754,7 +1754,8 @@ void SortFileByOverlappingRatio(
void VersionStorageInfo::UpdateFilesByCompactionPri(
CompactionPri compaction_pri) {
if (compaction_style_ == kCompactionStyleFIFO ||
if (compaction_style_ == kCompactionStyleNone ||
compaction_style_ == kCompactionStyleFIFO ||
compaction_style_ == kCompactionStyleUniversal) {
// don't need this
return;

Loading…
Cancel
Save