diff --git a/table/block.cc b/table/block.cc index 372bbd2f0b5..dc702b80c8b 100644 --- a/table/block.cc +++ b/table/block.cc @@ -402,6 +402,7 @@ Block::Block(BlockContents&& contents, SequenceNumber _global_seqno, : contents_(std::move(contents)), data_(contents_.data.data()), size_(contents_.data.size()), + restart_offset_(0), global_seqno_(_global_seqno) { if (size_ < sizeof(uint32_t)) { size_ = 0; // Error marker diff --git a/table/block_based_table_builder.cc b/table/block_based_table_builder.cc index c8815d378f4..dec0dce2df8 100644 --- a/table/block_based_table_builder.cc +++ b/table/block_based_table_builder.cc @@ -301,6 +301,7 @@ struct BlockBasedTableBuilder::Rep { compression_type(_compression_type), compression_opts(_compression_opts), compression_dict(_compression_dict), + compressed_cache_key_prefix_size(0), flush_block_policy( table_options.flush_block_policy_factory->NewFlushBlockPolicy( table_options, data_block)), diff --git a/table/block_based_table_reader.h b/table/block_based_table_reader.h index a5426cdedf7..8be8551e76e 100644 --- a/table/block_based_table_reader.h +++ b/table/block_based_table_reader.h @@ -407,6 +407,8 @@ struct BlockBasedTable::Rep { filter_policy(skip_filters ? nullptr : _table_opt.filter_policy.get()), internal_comparator(_internal_comparator), filter_type(FilterType::kNoFilter), + index_type(BlockBasedTableOptions::IndexType::kBinarySearch), + hash_index_allow_collision(false), whole_key_filtering(_table_opt.whole_key_filtering), prefix_filtering(true), range_del_handle(BlockHandle::NullBlockHandle()), diff --git a/table/cuckoo_table_reader.cc b/table/cuckoo_table_reader.cc index 9cecebaebb7..937f598d103 100644 --- a/table/cuckoo_table_reader.cc +++ b/table/cuckoo_table_reader.cc @@ -38,6 +38,18 @@ CuckooTableReader::CuckooTableReader( const Comparator* comparator, uint64_t (*get_slice_hash)(const Slice&, uint32_t, uint64_t)) : file_(std::move(file)), + is_last_level_(false), + identity_as_first_hash_(false), + use_module_hash_(false), + num_hash_func_(0), + unused_key_(""), + key_length_(0), + user_key_length_(0), + value_length_(0), + bucket_length_(0), + cuckoo_block_size_(0), + cuckoo_block_bytes_minus_one_(0), + table_size_(0), ucomp_(comparator), get_slice_hash_(get_slice_hash) { if (!ioptions.allow_mmap_reads) { diff --git a/table/plain_table_index.h b/table/plain_table_index.h index 2916be4192b..f4adf025839 100644 --- a/table/plain_table_index.h +++ b/table/plain_table_index.h @@ -123,6 +123,8 @@ class PlainTableIndexBuilder { num_keys_per_prefix_(0), prev_key_prefix_hash_(0), index_sparseness_(index_sparseness), + index_size_(0), + sub_index_size_(0), prefix_extractor_(ioptions.prefix_extractor), hash_table_ratio_(hash_table_ratio), huge_page_tlb_size_(huge_page_tlb_size) {}