diff --git a/db/compaction_picker.cc b/db/compaction_picker.cc index c25a41cad..953e44b32 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -825,6 +825,8 @@ bool LevelCompactionPicker::PickCompactionBySize(VersionStorageInfo* vstorage, return false; } + inputs->clear(); + assert(level >= 0); // Pick the largest file in this level that is not already