Home
last modified time | relevance | path

Searched refs:charge (Results 1 – 14 of 14) sorted by relevance

/rocksdb-6.9/cache/
Dclock_cache.cc183 size_t charge; member
210 Slice key, size_t charge, in CalcTotalCharge()
222 return charge + meta_charge; in CalcTotalCharge()
227 return CalcTotalCharge(key, charge, metadata_charge_policy); in CalcTotalCharge()
340 bool EvictFromCache(size_t charge, CleanupContext* context);
416 callback(handle.value, handle.charge); in ApplyToAllCacheEntries()
527 return charge <= capacity; in EvictFromCache()
531 while (usage + charge > capacity) { in EvictFromCache()
565 void* value, size_t charge, in Insert() argument
594 handle->charge = charge; in Insert()
[all …]
Dlru_cache.cc145 [callback](LRUHandle* h) { callback(h->value, h->charge); }); in ApplyToAllCacheEntries()
235 void LRUCacheShard::EvictFromLRU(size_t charge, in EvictFromLRU() argument
237 while ((usage_ + charge) > capacity_ && lru_.next != &lru_) { in EvictFromLRU()
340 size_t charge, Deleter* deleter, in Insert() argument
352 e->charge = charge; in Insert()
507 return reinterpret_cast<const LRUHandle*>(handle)->charge; in GetCharge()
Dlru_cache.h58 size_t charge; // TODO(opt): Only allow uint32_t? member
147 return charge + meta_charge; in CalcTotalCharge()
214 size_t charge, Deleter* deleter, Cache::Handle** handle, in ALIGN_AS()
257 void EvictFromLRU(size_t charge, autovector<LRUHandle*>* deleted); in ALIGN_AS()
Dcache_test.cc117 int charge = 1) { in Insert() argument
118 cache->Insert(EncodeKey(key), EncodeValue(value), charge, &deleter_); in Insert()
129 void Insert(int key, int value, int charge = 1) { in Insert() argument
130 Insert(cache_, key, value, charge); in Insert()
141 void Insert2(int key, int value, int charge = 1) { in Insert2() argument
142 Insert(cache2_, key, value, charge); in Insert2()
721 void callback(void* entry, size_t charge) { in callback() argument
722 callback_state.push_back({DecodeValue(entry), static_cast<int>(charge)}); in callback()
Dsharded_cache.h30 size_t charge, Deleter* deleter, Cache::Handle** handle,
73 virtual Status Insert(const Slice& key, void* value, size_t charge,
Dsharded_cache.cc46 Status ShardedCache::Insert(const Slice& key, void* value, size_t charge, in Insert() argument
51 ->Insert(key, hash, value, charge, deleter, handle, priority); in Insert()
/rocksdb-6.9/utilities/simulator_cache/
Dsim_cache.cc171 Status Insert(const Slice& key, void* value, size_t charge, Deleter* deleter, in Insert() argument
179 key_only_cache_->Insert(key, nullptr, charge, nullptr, nullptr, priority); in Insert()
184 cache_activity_logger_.ReportAdd(key, charge); in Insert()
188 return cache_->Insert(key, value, charge, deleter, handle, priority); in Insert()
/rocksdb-6.9/db/
Dtable_cache.cc419 size_t charge = in Get() local
422 ioptions_.row_cache->Insert(row_cache_key.GetUserKey(), row_ptr, charge, in Get()
539 size_t charge = in MultiGet() local
542 ioptions_.row_cache->Insert(row_cache_key.GetUserKey(), row_ptr, charge, in MultiGet()
Ddb_block_cache_test.cc446 Status Insert(const Slice& key, void* value, size_t charge, Deleter* deleter, in Insert() argument
453 return LRUCache::Insert(key, value, charge, deleter, handle, priority); in Insert()
Ddb_basic_test.cc2055 virtual Status Insert(const Slice& key, void* value, size_t charge, in Insert() argument
2059 return target_->Insert(key, value, charge, deleter, handle, priority); in Insert()
/rocksdb-6.9/
DLICENSE.Apache69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
168 and charge a fee for, acceptance of support, warranty, indemnity,
DCOPYING23 have the freedom to distribute copies of free software (and charge for
87 You may charge a fee for the physical act of transferring a copy, and
100 part thereof, to be licensed as a whole at no charge to all third
143 years, to give any third party, for a charge no more than your
/rocksdb-6.9/include/rocksdb/
Dcache.h180 virtual Status Insert(const Slice& key, void* value, size_t charge,
/rocksdb-6.9/table/block_based/
Dblock_based_table_reader.cc1166 size_t charge = block_holder->ApproximateMemoryUsage(); in GetDataBlockFromCache() local
1168 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in GetDataBlockFromCache()
1176 UpdateCacheInsertionMetrics(block_type, get_context, charge); in GetDataBlockFromCache()
1271 size_t charge = block_holder->ApproximateMemoryUsage(); in PutDataBlockToCache() local
1273 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in PutDataBlockToCache()
1281 UpdateCacheInsertionMetrics(block_type, get_context, charge); in PutDataBlockToCache()