diff --git a/db/compaction_picker.cc b/db/compaction_picker.cc index 72ba5f7dd..13e3d94c2 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -47,6 +47,8 @@ uint64_t TotalCompensatedFileSize(const std::vector& files) { // and the index of the file in that level struct InputFileInfo { + InputFileInfo() : f(nullptr) {} + FileMetaData* f; size_t level; size_t index;