diff --git a/table/block_based_table_builder.cc b/table/block_based_table_builder.cc index d42e0f8b7..d356cb5c0 100644 --- a/table/block_based_table_builder.cc +++ b/table/block_based_table_builder.cc @@ -295,7 +295,7 @@ struct BlockBasedTableBuilder::Rep { file(f), data_block(table_options.block_restart_interval, table_options.use_delta_encoding), - range_del_block(1), // TODO(andrewkr): restart_interval unnecessary + range_del_block(port::kMaxInt32), internal_prefix_transform(_ioptions.prefix_extractor), compression_type(_compression_type), compression_opts(_compression_opts), diff --git a/table/meta_blocks.cc b/table/meta_blocks.cc index 1227bb0ae..f8ea933f1 100644 --- a/table/meta_blocks.cc +++ b/table/meta_blocks.cc @@ -21,7 +21,8 @@ namespace rocksdb { MetaIndexBuilder::MetaIndexBuilder() - : meta_index_block_(new BlockBuilder(1 /* restart interval */)) {} + : meta_index_block_( + new BlockBuilder(port::kMaxInt32 /* restart interval */)) {} void MetaIndexBuilder::Add(const std::string& key, const BlockHandle& handle) { @@ -38,7 +39,8 @@ Slice MetaIndexBuilder::Finish() { } PropertyBlockBuilder::PropertyBlockBuilder() - : properties_block_(new BlockBuilder(1 /* restart interval */)) {} + : properties_block_( + new BlockBuilder(port::kMaxInt32 /* restart interval */)) {} void PropertyBlockBuilder::Add(const std::string& name, const std::string& val) {