mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
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:
parent
5d68243e61
commit
9cb4856dbd
|
@ -1754,7 +1754,8 @@ void SortFileByOverlappingRatio(
|
||||||
|
|
||||||
void VersionStorageInfo::UpdateFilesByCompactionPri(
|
void VersionStorageInfo::UpdateFilesByCompactionPri(
|
||||||
CompactionPri compaction_pri) {
|
CompactionPri compaction_pri) {
|
||||||
if (compaction_style_ == kCompactionStyleFIFO ||
|
if (compaction_style_ == kCompactionStyleNone ||
|
||||||
|
compaction_style_ == kCompactionStyleFIFO ||
|
||||||
compaction_style_ == kCompactionStyleUniversal) {
|
compaction_style_ == kCompactionStyleUniversal) {
|
||||||
// don't need this
|
// don't need this
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue