@ -62,8 +62,8 @@ TEST_F(OptionsTest, GetOptionsFromMapTest) {
" kZSTD: "
" kZSTDNotFinalCompression " } ,
{ " bottommost_compression " , " kLZ4Compression " } ,
{ " bottommost_compression_opts " , " 5:6:7:8:9: 10:true " } ,
{ " compression_opts " , " 4:5:6:7:8:9: true " } ,
{ " bottommost_compression_opts " , " 5:6:7:8:10:true " } ,
{ " compression_opts " , " 4:5:6:7:8:true " } ,
{ " num_levels " , " 8 " } ,
{ " level0_file_num_compaction_trigger " , " 8 " } ,
{ " level0_slowdown_writes_trigger " , " 9 " } ,
@ -175,15 +175,17 @@ TEST_F(OptionsTest, GetOptionsFromMapTest) {
ASSERT_EQ ( new_cf_opt . compression_opts . strategy , 6 ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . max_dict_bytes , 7u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . zstd_max_train_bytes , 8u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . parallel_threads , 9u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . parallel_threads ,
CompressionOptions ( ) . parallel_threads ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . enabled , true ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression , kLZ4Compression ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . window_bits , 5 ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . level , 6 ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . strategy , 7 ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . max_dict_bytes , 8u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . zstd_max_train_bytes , 9u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . parallel_threads , 10u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . zstd_max_train_bytes , 10u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . parallel_threads ,
CompressionOptions ( ) . parallel_threads ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . enabled , true ) ;
ASSERT_EQ ( new_cf_opt . num_levels , 8 ) ;
ASSERT_EQ ( new_cf_opt . level0_file_num_compaction_trigger , 8 ) ;
@ -1297,8 +1299,8 @@ TEST_F(OptionsOldApiTest, GetOptionsFromMapTest) {
" kZSTD: "
" kZSTDNotFinalCompression " } ,
{ " bottommost_compression " , " kLZ4Compression " } ,
{ " bottommost_compression_opts " , " 5:6:7:8:9:10: true " } ,
{ " compression_opts " , " 4:5:6:7:8:9: true " } ,
{ " bottommost_compression_opts " , " 5:6:7:8:9:true " } ,
{ " compression_opts " , " 4:5:6:7:8:true " } ,
{ " num_levels " , " 8 " } ,
{ " level0_file_num_compaction_trigger " , " 8 " } ,
{ " level0_slowdown_writes_trigger " , " 9 " } ,
@ -1402,7 +1404,8 @@ TEST_F(OptionsOldApiTest, GetOptionsFromMapTest) {
ASSERT_EQ ( new_cf_opt . compression_opts . strategy , 6 ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . max_dict_bytes , 7u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . zstd_max_train_bytes , 8u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . parallel_threads , 9u ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . parallel_threads ,
CompressionOptions ( ) . parallel_threads ) ;
ASSERT_EQ ( new_cf_opt . compression_opts . enabled , true ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression , kLZ4Compression ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . window_bits , 5 ) ;
@ -1410,7 +1413,8 @@ TEST_F(OptionsOldApiTest, GetOptionsFromMapTest) {
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . strategy , 7 ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . max_dict_bytes , 8u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . zstd_max_train_bytes , 9u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . parallel_threads , 10u ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . parallel_threads ,
CompressionOptions ( ) . parallel_threads ) ;
ASSERT_EQ ( new_cf_opt . bottommost_compression_opts . enabled , true ) ;
ASSERT_EQ ( new_cf_opt . num_levels , 8 ) ;
ASSERT_EQ ( new_cf_opt . level0_file_num_compaction_trigger , 8 ) ;