Struct solana_runtime::accounts_db::AncientSlotPubkeys
source · struct AncientSlotPubkeys {
inner: Option<AncientSlotPubkeysInner>,
}
Fields§
§inner: Option<AncientSlotPubkeysInner>
Implementations§
source§impl AncientSlotPubkeys
impl AncientSlotPubkeys
sourcefn maybe_unref_accounts_already_in_ancient(
&mut self,
slot: Slot,
db: &AccountsDb,
current_ancient: &CurrentAncientAppendVec,
to_store: &AccountsToStore<'_>
)
fn maybe_unref_accounts_already_in_ancient( &mut self, slot: Slot, db: &AccountsDb, current_ancient: &CurrentAncientAppendVec, to_store: &AccountsToStore<'_> )
All accounts in ‘slot’ will be moved to ‘current_ancient’ If ‘slot’ is different than the ‘current_ancient’.slot, then an account in ‘slot’ may ALREADY be in the current ancient append vec. In that case, we need to unref the pubkey because it will now only be referenced from ‘current_ancient’.slot and no longer from ‘slot’. ‘self’ is also changed to accumulate the pubkeys that now exist in ‘current_ancient’ When ‘slot’ differs from the previous inner slot, then we have moved to a new ancient append vec, and inner.pubkeys gets reset to the pubkeys in the new ‘current_ancient’.append_vec
Trait Implementations§
source§impl Debug for AncientSlotPubkeys
impl Debug for AncientSlotPubkeys
source§impl Default for AncientSlotPubkeys
impl Default for AncientSlotPubkeys
source§fn default() -> AncientSlotPubkeys
fn default() -> AncientSlotPubkeys
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AncientSlotPubkeys
impl Send for AncientSlotPubkeys
impl Sync for AncientSlotPubkeys
impl Unpin for AncientSlotPubkeys
impl UnwindSafe for AncientSlotPubkeys
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more