Home
last modified time | relevance | path

Searched refs:co (Results 1 – 12 of 12) sorted by relevance

/rocksdb-6.9/utilities/simulator_cache/
Dsim_cache_test.cc80 LRUCacheOptions co; in TEST_F() local
81 co.capacity = 0; in TEST_F()
82 co.num_shard_bits = 0; in TEST_F()
83 co.strict_capacity_limit = false; in TEST_F()
84 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
85 std::shared_ptr<SimCache> simCache = NewSimCache(NewLRUCache(co), 20000, 0); in TEST_F()
149 LRUCacheOptions co; in TEST_F() local
150 co.capacity = 1024 * 1024; in TEST_F()
151 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
152 std::shared_ptr<SimCache> sim_cache = NewSimCache(NewLRUCache(co), 20000, 0); in TEST_F()
Dsim_cache.cc334 LRUCacheOptions co; in NewSimCache() local
335 co.capacity = sim_capacity; in NewSimCache()
336 co.num_shard_bits = num_shard_bits; in NewSimCache()
337 co.metadata_charge_policy = kDontChargeCacheMetadata; in NewSimCache()
338 return NewSimCache(NewLRUCache(co), cache, num_shard_bits); in NewSimCache()
Dcache_simulator_test.cc316 LRUCacheOptions co; in TEST_F() local
317 co.capacity = 16; in TEST_F()
318 co.num_shard_bits = 1; in TEST_F()
319 co.strict_capacity_limit = false; in TEST_F()
320 co.high_pri_pool_ratio = 0; in TEST_F()
321 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
322 std::shared_ptr<Cache> sim_cache = NewLRUCache(co); in TEST_F()
/rocksdb-6.9/memtable/
Dwrite_buffer_manager_test.cc54 LRUCacheOptions co; in TEST_F() local
56 co.capacity = 1024 * 1024 * 1024; in TEST_F()
57 co.num_shard_bits = 4; in TEST_F()
58 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
59 std::shared_ptr<Cache> cache = NewLRUCache(co); in TEST_F()
/rocksdb-6.9/cache/
Dcache_test.cc92 LRUCacheOptions co; in NewCache() local
93 co.capacity = capacity; in NewCache()
94 co.num_shard_bits = num_shard_bits; in NewCache()
95 co.strict_capacity_limit = strict_capacity_limit; in NewCache()
96 co.high_pri_pool_ratio = 0; in NewCache()
97 co.metadata_charge_policy = charge_policy; in NewCache()
98 return NewLRUCache(co); in NewCache()
/rocksdb-6.9/db/
Ddb_block_cache_test.cc384 LRUCacheOptions co; in TEST_F() local
386 co.capacity = 500; in TEST_F()
387 co.num_shard_bits = 0; in TEST_F()
388 co.strict_capacity_limit = false; in TEST_F()
389 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
390 std::shared_ptr<Cache> cache = NewLRUCache(co); in TEST_F()
Ddeletefile_test.cc271 ColumnFamilyOptions co; in TEST_F() local
272 co.max_write_buffer_size_to_maintain = in TEST_F()
273 static_cast<int64_t>(co.write_buffer_size); in TEST_F()
278 ASSERT_OK(db_->CreateColumnFamily(co, "dropme", &cfh)); in TEST_F()
Dcompact_files_test.cc388 CompactionOptions co; in TEST_F() local
389 co.compression = CompressionType::kLZ4Compression; in TEST_F()
392 db->CompactFiles(co, l0_files_1, 0, -1, nullptr, &compaction_job_info)); in TEST_F()
Ddb_properties_test.cc1634 LRUCacheOptions co; in TEST_F() local
1635 co.capacity = kCapacity; in TEST_F()
1636 co.num_shard_bits = 0; in TEST_F()
1637 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_F()
1638 auto block_cache = NewLRUCache(co); in TEST_F()
/rocksdb-6.9/table/block_based/
Dblock_based_table_factory.cc172 LRUCacheOptions co; in BlockBasedTableFactory() local
173 co.capacity = 8 << 20; in BlockBasedTableFactory()
176 co.high_pri_pool_ratio = 0.0; in BlockBasedTableFactory()
177 table_options_.block_cache = NewLRUCache(co); in BlockBasedTableFactory()
/rocksdb-6.9/db/db_impl/
Ddb_impl.cc239 LRUCacheOptions co; in DBImpl() local
240 co.capacity = table_cache_size; in DBImpl()
241 co.num_shard_bits = immutable_db_options_.table_cache_numshardbits; in DBImpl()
242 co.metadata_charge_policy = kDontChargeCacheMetadata; in DBImpl()
243 table_cache_ = NewLRUCache(co); in DBImpl()
/rocksdb-6.9/table/
Dtable_test.cc2809 LRUCacheOptions co; in TEST_P() local
2810 co.capacity = 2048; in TEST_P()
2811 co.num_shard_bits = 2; in TEST_P()
2812 co.metadata_charge_policy = kDontChargeCacheMetadata; in TEST_P()
2813 table_options.block_cache = NewLRUCache(co); in TEST_P()