Lines Matching refs:new_cf_opt

147   ColumnFamilyOptions new_cf_opt;  in TEST_F()  local
149 base_cf_opt, cf_options_map, &new_cf_opt)); in TEST_F()
150 ASSERT_EQ(new_cf_opt.write_buffer_size, 1U); in TEST_F()
151 ASSERT_EQ(new_cf_opt.max_write_buffer_number, 2); in TEST_F()
152 ASSERT_EQ(new_cf_opt.min_write_buffer_number_to_merge, 3); in TEST_F()
153 ASSERT_EQ(new_cf_opt.max_write_buffer_number_to_maintain, 99); in TEST_F()
154 ASSERT_EQ(new_cf_opt.max_write_buffer_size_to_maintain, -99999); in TEST_F()
155 ASSERT_EQ(new_cf_opt.compression, kSnappyCompression); in TEST_F()
156 ASSERT_EQ(new_cf_opt.compression_per_level.size(), 9U); in TEST_F()
157 ASSERT_EQ(new_cf_opt.compression_per_level[0], kNoCompression); in TEST_F()
158 ASSERT_EQ(new_cf_opt.compression_per_level[1], kSnappyCompression); in TEST_F()
159 ASSERT_EQ(new_cf_opt.compression_per_level[2], kZlibCompression); in TEST_F()
160 ASSERT_EQ(new_cf_opt.compression_per_level[3], kBZip2Compression); in TEST_F()
161 ASSERT_EQ(new_cf_opt.compression_per_level[4], kLZ4Compression); in TEST_F()
162 ASSERT_EQ(new_cf_opt.compression_per_level[5], kLZ4HCCompression); in TEST_F()
163 ASSERT_EQ(new_cf_opt.compression_per_level[6], kXpressCompression); in TEST_F()
164 ASSERT_EQ(new_cf_opt.compression_per_level[7], kZSTD); in TEST_F()
165 ASSERT_EQ(new_cf_opt.compression_per_level[8], kZSTDNotFinalCompression); in TEST_F()
166 ASSERT_EQ(new_cf_opt.compression_opts.window_bits, 4); in TEST_F()
167 ASSERT_EQ(new_cf_opt.compression_opts.level, 5); in TEST_F()
168 ASSERT_EQ(new_cf_opt.compression_opts.strategy, 6); in TEST_F()
169 ASSERT_EQ(new_cf_opt.compression_opts.max_dict_bytes, 7u); in TEST_F()
170 ASSERT_EQ(new_cf_opt.compression_opts.zstd_max_train_bytes, 8u); in TEST_F()
171 ASSERT_EQ(new_cf_opt.compression_opts.enabled, true); in TEST_F()
172 ASSERT_EQ(new_cf_opt.bottommost_compression, kLZ4Compression); in TEST_F()
173 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.window_bits, 5); in TEST_F()
174 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.level, 6); in TEST_F()
175 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.strategy, 7); in TEST_F()
176 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.max_dict_bytes, 8u); in TEST_F()
177 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.zstd_max_train_bytes, 9u); in TEST_F()
178 ASSERT_EQ(new_cf_opt.bottommost_compression_opts.enabled, true); in TEST_F()
179 ASSERT_EQ(new_cf_opt.num_levels, 8); in TEST_F()
180 ASSERT_EQ(new_cf_opt.level0_file_num_compaction_trigger, 8); in TEST_F()
181 ASSERT_EQ(new_cf_opt.level0_slowdown_writes_trigger, 9); in TEST_F()
182 ASSERT_EQ(new_cf_opt.level0_stop_writes_trigger, 10); in TEST_F()
183 ASSERT_EQ(new_cf_opt.target_file_size_base, static_cast<uint64_t>(12)); in TEST_F()
184 ASSERT_EQ(new_cf_opt.target_file_size_multiplier, 13); in TEST_F()
185 ASSERT_EQ(new_cf_opt.max_bytes_for_level_base, 14U); in TEST_F()
186 ASSERT_EQ(new_cf_opt.level_compaction_dynamic_level_bytes, true); in TEST_F()
187 ASSERT_EQ(new_cf_opt.max_bytes_for_level_multiplier, 15.0); in TEST_F()
188 ASSERT_EQ(new_cf_opt.max_bytes_for_level_multiplier_additional.size(), 3U); in TEST_F()
189 ASSERT_EQ(new_cf_opt.max_bytes_for_level_multiplier_additional[0], 16); in TEST_F()
190 ASSERT_EQ(new_cf_opt.max_bytes_for_level_multiplier_additional[1], 17); in TEST_F()
191 ASSERT_EQ(new_cf_opt.max_bytes_for_level_multiplier_additional[2], 18); in TEST_F()
192 ASSERT_EQ(new_cf_opt.max_compaction_bytes, 21); in TEST_F()
193 ASSERT_EQ(new_cf_opt.hard_pending_compaction_bytes_limit, 211); in TEST_F()
194 ASSERT_EQ(new_cf_opt.arena_block_size, 22U); in TEST_F()
195 ASSERT_EQ(new_cf_opt.disable_auto_compactions, true); in TEST_F()
196 ASSERT_EQ(new_cf_opt.compaction_style, kCompactionStyleLevel); in TEST_F()
197 ASSERT_EQ(new_cf_opt.compaction_pri, kOldestSmallestSeqFirst); in TEST_F()
198 ASSERT_EQ(new_cf_opt.compaction_options_fifo.max_table_files_size, in TEST_F()
200 ASSERT_EQ(new_cf_opt.max_sequential_skip_in_iterations, in TEST_F()
202 ASSERT_EQ(new_cf_opt.inplace_update_support, true); in TEST_F()
203 ASSERT_EQ(new_cf_opt.inplace_update_num_locks, 25U); in TEST_F()
204 ASSERT_EQ(new_cf_opt.memtable_prefix_bloom_size_ratio, 0.26); in TEST_F()
205 ASSERT_EQ(new_cf_opt.memtable_whole_key_filtering, true); in TEST_F()
206 ASSERT_EQ(new_cf_opt.memtable_huge_page_size, 28U); in TEST_F()
207 ASSERT_EQ(new_cf_opt.bloom_locality, 29U); in TEST_F()
208 ASSERT_EQ(new_cf_opt.max_successive_merges, 30U); in TEST_F()
209 ASSERT_TRUE(new_cf_opt.prefix_extractor != nullptr); in TEST_F()
210 ASSERT_EQ(new_cf_opt.optimize_filters_for_hits, true); in TEST_F()
211 ASSERT_EQ(std::string(new_cf_opt.prefix_extractor->Name()), in TEST_F()
216 base_cf_opt, cf_options_map, &new_cf_opt)); in TEST_F()
217 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
221 base_cf_opt, cf_options_map, &new_cf_opt)); in TEST_F()
225 base_cf_opt, cf_options_map, &new_cf_opt)); in TEST_F()
226 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
229 &new_cf_opt, in TEST_F()
233 base_cf_opt, new_cf_opt, nullptr, /* new_opt_map */ in TEST_F()
236 base_cf_opt, new_cf_opt, nullptr, /* new_opt_map */ in TEST_F()
312 ColumnFamilyOptions new_cf_opt; in TEST_F() local
314 ASSERT_OK(GetColumnFamilyOptionsFromString(base_cf_opt, "", &new_cf_opt)); in TEST_F()
316 "write_buffer_size=5", &new_cf_opt)); in TEST_F()
317 ASSERT_EQ(new_cf_opt.write_buffer_size, 5U); in TEST_F()
318 ASSERT_TRUE(new_cf_opt.table_factory == nullptr); in TEST_F()
320 "write_buffer_size=6;", &new_cf_opt)); in TEST_F()
321 ASSERT_EQ(new_cf_opt.write_buffer_size, 6U); in TEST_F()
323 " write_buffer_size = 7 ", &new_cf_opt)); in TEST_F()
324 ASSERT_EQ(new_cf_opt.write_buffer_size, 7U); in TEST_F()
326 " write_buffer_size = 8 ; ", &new_cf_opt)); in TEST_F()
327 ASSERT_EQ(new_cf_opt.write_buffer_size, 8U); in TEST_F()
329 "write_buffer_size=9;max_write_buffer_number=10", &new_cf_opt)); in TEST_F()
330 ASSERT_EQ(new_cf_opt.write_buffer_size, 9U); in TEST_F()
331 ASSERT_EQ(new_cf_opt.max_write_buffer_number, 10); in TEST_F()
334 &new_cf_opt)); in TEST_F()
335 ASSERT_EQ(new_cf_opt.write_buffer_size, 11U); in TEST_F()
336 ASSERT_EQ(new_cf_opt.max_write_buffer_number, 12); in TEST_F()
340 &new_cf_opt)); in TEST_F()
341 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
352 base_cf_opt, "comparator=" + kCompName + ";", &new_cf_opt)); in TEST_F()
353 ASSERT_EQ(new_cf_opt.comparator, ReverseBytewiseComparator()); in TEST_F()
367 base_cf_opt, "merge_operator=" + kMoName + ";", &new_cf_opt)); in TEST_F()
368 ASSERT_EQ(kMoName, std::string(new_cf_opt.merge_operator->Name())); in TEST_F()
372 "write_buffer_size=13;max_write_buffer_number;", &new_cf_opt)); in TEST_F()
373 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
377 "write_buffer_size=13;max_write_buffer_number=;", &new_cf_opt)); in TEST_F()
378 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
382 "write_buffer_size=13; =100;", &new_cf_opt)); in TEST_F()
383 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
392 base_cf_opt, "max_write_buffer_number=15K", &new_cf_opt)); in TEST_F()
393 ASSERT_EQ(new_cf_opt.max_write_buffer_number, 15 * kilo); in TEST_F()
397 &new_cf_opt)); in TEST_F()
398 ASSERT_EQ(new_cf_opt.max_write_buffer_number, 16 * mega); in TEST_F()
399 ASSERT_EQ(new_cf_opt.inplace_update_num_locks, 17u * mega); in TEST_F()
405 &new_cf_opt)); in TEST_F()
407 ASSERT_EQ(new_cf_opt.write_buffer_size, 18 * giga); in TEST_F()
408 ASSERT_EQ(new_cf_opt.arena_block_size, 19 * giga); in TEST_F()
409 ASSERT_TRUE(new_cf_opt.prefix_extractor.get() != nullptr); in TEST_F()
410 std::string prefix_name(new_cf_opt.prefix_extractor->Name()); in TEST_F()
415 "write_buffer_size=20t;arena_block_size=21T", &new_cf_opt)); in TEST_F()
416 ASSERT_EQ(new_cf_opt.write_buffer_size, 20 * tera); in TEST_F()
417 ASSERT_EQ(new_cf_opt.arena_block_size, 21 * tera); in TEST_F()
424 &new_cf_opt)); in TEST_F()
425 ASSERT_TRUE(new_cf_opt.table_factory != nullptr); in TEST_F()
431 &new_cf_opt)); in TEST_F()
432 ASSERT_TRUE(new_cf_opt.table_factory != nullptr); in TEST_F()
437 &new_cf_opt)); in TEST_F()
438 ASSERT_TRUE(new_cf_opt.table_factory != nullptr); in TEST_F()
444 &new_cf_opt)); in TEST_F()
445 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
452 &new_cf_opt)); in TEST_F()
453 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
459 &new_cf_opt)); in TEST_F()
460 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
465 &new_cf_opt)); in TEST_F()
466 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
472 &new_cf_opt)); in TEST_F()
473 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
477 &new_cf_opt)); in TEST_F()
480 &new_cf_opt)); in TEST_F()
484 &new_cf_opt)); in TEST_F()
485 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt)); in TEST_F()
492 &new_cf_opt)); in TEST_F()
493 ASSERT_TRUE(new_cf_opt.table_factory != nullptr); in TEST_F()
494 ASSERT_EQ(std::string(new_cf_opt.table_factory->Name()), "PlainTable"); in TEST_F()
500 &new_cf_opt)); in TEST_F()
501 ASSERT_TRUE(new_cf_opt.table_factory != nullptr); in TEST_F()
502 ASSERT_EQ(std::string(new_cf_opt.table_factory->Name()), "PlainTable"); in TEST_F()
508 &new_cf_opt)); in TEST_F()
509 ASSERT_TRUE(new_cf_opt.memtable_factory != nullptr); in TEST_F()
510 ASSERT_EQ(std::string(new_cf_opt.memtable_factory->Name()), "SkipListFactory"); in TEST_F()
1444 ColumnFamilyOptions* base_cf_opt, const ColumnFamilyOptions* new_cf_opt, in VerifyCFPointerTypedOptions() argument
1447 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()
1459 *base_cf_opt, *new_cf_opt, new_cf_opt_map)); in VerifyCFPointerTypedOptions()
1462 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()
1477 *base_cf_opt, *new_cf_opt, new_cf_opt_map)); in VerifyCFPointerTypedOptions()
1480 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()
1492 *base_cf_opt, *new_cf_opt, new_cf_opt_map)); in VerifyCFPointerTypedOptions()
1495 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()
1507 *base_cf_opt, *new_cf_opt, new_cf_opt_map)); in VerifyCFPointerTypedOptions()
1510 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()
1522 *base_cf_opt, *new_cf_opt, new_cf_opt_map)); in VerifyCFPointerTypedOptions()
1525 ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(*base_cf_opt, *new_cf_opt, in VerifyCFPointerTypedOptions()