pub struct BinEntry {
pub data: Option<Vec<u8>>,
pub known_deleted: bool,
pub dirty: bool,
pub expiration_time: u32,
}Expand description
Entry in a BIN node.
T-3: the per-slot lsn (8 bytes) that used to live here was hoisted to the
node-level BinStub.lsn_rep (IN.entryLsnByteArray); access the LSN for
slot i via BinStub::get_lsn(i) / set_lsn(i, lsn).
Fields§
§data: Option<Vec<u8>>Optional embedded data (for small records) or cached LN.
known_deleted: boolTrue when this slot has been marked known-deleted (analogous to the
KNOWN_DELETED_BIT in IN.entryStates). The slot is eligible for
removal by compress_bin().
dirty: boolTrue when this slot has been modified since the last full BIN log write.
IN.entryStates[i] & IN_DIRTY_BIT. Used by the checkpoint
path to decide whether to write a BIN-delta (few dirty slots) or a
full BIN (many dirty slots).
expiration_time: u32Packed expiration time (0 = no expiration).
When the owning BinStub.expiration_in_hours is true, this value is
hours since Unix epoch; otherwise it is seconds since Unix epoch.
IN.entryExpiration.