pub struct InsertAcquired {
pub disk_block_ids: Vec<u32>,
pub blocks: Vec<u32>,
pub released_blocks: Vec<u32>,
}Expand description
2026-09-26: What an insert started or stopped storing, so the caller can take and release the matching references.
The cache holds one KV reference on each block it stores, taken when it starts storing it and handed back on eviction. Where a node already exists for a chunk, the insert keeps the node’s block, which can differ from the inserting sequence’s block, so the caller references the blocks listed here rather than its own block table.
Fields§
§disk_block_ids: Vec<u32>2026-09-26: Disk-block ids the cache newly references; the caller
inc_disk_refs each.
blocks: Vec<u32>2026-09-26: KV blocks the cache started storing (new nodes, and a new
partial-suffix slot); the caller inc_refs each once.
released_blocks: Vec<u32>2026-09-26: KV blocks the cache stopped storing: a partial-suffix slot
that was replaced. The caller dec_refs each once.
Trait Implementations§
Source§impl Clone for InsertAcquired
impl Clone for InsertAcquired
Source§fn clone(&self) -> InsertAcquired
fn clone(&self) -> InsertAcquired
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more