FileMetaData: fix init number

This commit is contained in:
Pavel Pimenov 2019-12-29 19:26:04 +03:00
parent 58a89bbcb2
commit 58f9bfcffb

View File

@ -16,7 +16,7 @@ namespace leveldb {
class VersionSet;
struct FileMetaData {
FileMetaData() : refs(0), allowed_seeks(1 << 30), file_size(0) {}
FileMetaData() : refs(0), allowed_seeks(1 << 30), number(0), file_size(0) {}
int refs;
int allowed_seeks; // Seeks allowed until compaction