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
This commit is contained in:
Huachao Huang 2018-03-05 17:44:52 -08:00 committed by Facebook Github Bot
parent 5d68243e61
commit 9cb4856dbd
1 changed files with 2 additions and 1 deletions

View File

@ -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;