Searched refs:lba (Results 1 – 5 of 5) sorted by relevance
| /rocksdb-6.9/utilities/persistent_cache/ |
| D | block_cache_tier_file.cc | 231 assert(lba.cache_id_ == cache_id_); in Read() 238 Status s = freader_->Read(lba.off_, lba.size_, &result, scratch, nullptr); in Read() 252 Slice data(scratch, lba.size_); in ParseRec() 258 Path().c_str(), lba.off_); in ParseRec() 334 lba->cache_id_ = cache_id_; in Append() 335 lba->off_ = disk_woff_; in Append() 336 lba->size_ = rec_size; in Append() 454 if (!ReadBuffer(lba, scratch)) { in ReadBuffer() 456 lba.off_); in ReadBuffer() 466 assert(lba.off_ < disk_woff_); in ReadBuffer() [all …]
|
| D | block_cache_tier_metadata.cc | 39 BlockInfo* BlockCacheTierMetadata::Insert(const Slice& key, const LBA& lba) { in Insert() argument 40 std::unique_ptr<BlockInfo> binfo(new BlockInfo(key, lba)); in Insert() 47 bool BlockCacheTierMetadata::Lookup(const Slice& key, LBA* lba) { in Lookup() argument 57 if (lba) { in Lookup() 58 *lba = block->lba_; in Lookup()
|
| D | block_cache_tier_file.h | 161 bool Read(const LBA& lba, Slice* key, Slice* block, char* scratch) override; 168 bool ParseRec(const LBA& lba, Slice* key, Slice* val, char* scratch); 195 bool Read(const LBA& lba, Slice* key, Slice* block, char* scratch) override { in Read() argument 200 return RandomAccessCacheFile::Read(lba, key, block, scratch); in Read() 203 return ReadBuffer(lba, key, block, scratch); in Read() 216 bool ReadBuffer(const LBA& lba, Slice* key, Slice* block, char* scratch); 217 bool ReadBuffer(const LBA& lba, char* data);
|
| D | block_cache_tier.cc | 229 LBA lba; in InsertImpl() local 230 if (metadata_.Lookup(key, &lba)) { in InsertImpl() 235 while (!cache_file_->Append(key, data, &lba)) { in InsertImpl() 251 BlockInfo* info = metadata_.Insert(key, lba); in InsertImpl() 270 LBA lba; in Lookup() local 272 status = metadata_.Lookup(key, &lba); in Lookup() 279 BlockCacheFile* const file = metadata_.Lookup(lba.cache_id_); in Lookup() 290 std::unique_ptr<char[]> scratch(new char[lba.size_]); in Lookup() 294 status = file->Read(lba, &blk_key, &blk_val, scratch.get()); in Lookup()
|
| D | block_cache_tier_metadata.h | 41 explicit BlockInfo(const Slice& key, const LBA& lba = LBA()) 42 : key_(key.ToString()), lba_(lba) {} 63 BlockInfo* Insert(const Slice& key, const LBA& lba); 67 bool Lookup(const Slice& key, LBA* lba);
|