pub struct RefcountEntry {
pub refcount: u32,
pub first_seen_unix_ms: u64,
pub last_seen_unix_ms: u64,
pub pinned: bool,
pub size_bytes: Option<u64>,
}Expand description
Per-hash refcount entry stored in the BlobRefcountTable.
Fields§
§refcount: u32Current outstanding references from any source (chain
folds, CortEX, queries, scanner). Saturating arithmetic on
both incr and decr so a buggy source can’t underflow
or wrap.
first_seen_unix_ms: u64Wall-clock unix milliseconds when this hash was first
observed (first incr OR first store_observed). Used by
super::refcount::should_sweep against the retention
floor.
last_seen_unix_ms: u64Wall-clock unix milliseconds of the most recent touch
(incr / fetch / sweep-skipped). Drives the
BlobStat::last_seen_unix_ms field surfaced via the
adapter stat path.
pinned: booltrue while the operator has pinned the hash via
BlobRefcountTable::pin. Pinned hashes survive GC
regardless of refcount / retention floor.
size_bytes: Option<u64>Payload size in bytes for this hash. Some(n) whenever
the local adapter has observed a store; None for hashes
that only entered the table via incr from a remote
source (the chunk isn’t local yet — the size is the peer’s
to advertise).
Trait Implementations§
Source§impl Clone for RefcountEntry
impl Clone for RefcountEntry
Source§fn clone(&self) -> RefcountEntry
fn clone(&self) -> RefcountEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more