Fix test PartitionedMultiGet in db_bloom_filter_test
Partial back-port of #6905
This commit is contained in:
parent
515a27941a
commit
0367cd4370
@ -1063,12 +1063,12 @@ TEST_P(DBBloomFilterTestVaryPrefixAndFormatVer, PartitionedMultiGet) {
|
|||||||
bbto.partition_filters = true;
|
bbto.partition_filters = true;
|
||||||
bbto.index_type = BlockBasedTableOptions::IndexType::kTwoLevelIndexSearch;
|
bbto.index_type = BlockBasedTableOptions::IndexType::kTwoLevelIndexSearch;
|
||||||
bbto.whole_key_filtering = !use_prefix_;
|
bbto.whole_key_filtering = !use_prefix_;
|
||||||
bbto.metadata_block_size = 128;
|
bbto.metadata_block_size = 290;
|
||||||
options.table_factory.reset(NewBlockBasedTableFactory(bbto));
|
options.table_factory.reset(NewBlockBasedTableFactory(bbto));
|
||||||
DestroyAndReopen(options);
|
DestroyAndReopen(options);
|
||||||
ReadOptions ropts;
|
ReadOptions ropts;
|
||||||
|
|
||||||
constexpr uint32_t N = 10000;
|
constexpr uint32_t N = 12000;
|
||||||
// Add N/2 evens
|
// Add N/2 evens
|
||||||
for (uint32_t i = 0; i < N; i += 2) {
|
for (uint32_t i = 0; i < N; i += 2) {
|
||||||
ASSERT_OK(Put(UKey(i), UKey(i)));
|
ASSERT_OK(Put(UKey(i), UKey(i)));
|
||||||
|
Loading…
Reference in New Issue
Block a user