|
|
@ -470,12 +470,12 @@ TEST(OptionsTest, GetOptionsFromStringTest) { |
|
|
|
&new_options)); |
|
|
|
&new_options)); |
|
|
|
|
|
|
|
|
|
|
|
ASSERT_EQ(new_options.write_buffer_size, 10U); |
|
|
|
ASSERT_EQ(new_options.write_buffer_size, 10U); |
|
|
|
ASSERT_EQ(new_options.max_write_buffer_number, 16U); |
|
|
|
ASSERT_EQ(new_options.max_write_buffer_number, 16); |
|
|
|
BlockBasedTableOptions new_block_based_table_options = |
|
|
|
BlockBasedTableOptions new_block_based_table_options = |
|
|
|
dynamic_cast<BlockBasedTableFactory*>(new_options.table_factory.get()) |
|
|
|
dynamic_cast<BlockBasedTableFactory*>(new_options.table_factory.get()) |
|
|
|
->GetTableOptions(); |
|
|
|
->GetTableOptions(); |
|
|
|
ASSERT_EQ(new_block_based_table_options.block_cache->GetCapacity(), 1U << 20); |
|
|
|
ASSERT_EQ(new_block_based_table_options.block_cache->GetCapacity(), 1U << 20); |
|
|
|
ASSERT_EQ(new_block_based_table_options.block_size, 4); |
|
|
|
ASSERT_EQ(new_block_based_table_options.block_size, 4U); |
|
|
|
// don't overwrite block based table options
|
|
|
|
// don't overwrite block based table options
|
|
|
|
ASSERT_TRUE(new_block_based_table_options.cache_index_and_filter_blocks); |
|
|
|
ASSERT_TRUE(new_block_based_table_options.cache_index_and_filter_blocks); |
|
|
|
|
|
|
|
|
|
|
|