Module append_vec

Source
Expand description

Persistent storage for accounts.

For more information, see:

https://docs.solana.com/implemented-proposals/persistent-account-storage

Modules§

test_utils
Helpers for AppendVec tests and benches

Structs§

AccountMeta
This struct will be backed by mmaped and snapshotted data files. So the data layout must be stable and consistent across the entire cluster!
AppendVec
A thread-safe, file-backed block of memory used to store Account instances. Append operations are serialized such that only one thread updates the internal append_lock at a time. No restrictions are placed on reading. That is, one may read items from one thread while another is appending new items.
AppendVecAccountsIter
StoredAccountMeta
References to account data stored elsewhere. Getting an Account requires cloning (see StoredAccountMeta::clone_account()).
StoredMeta
Meta contains enough context to recover the index from storage itself This struct will be backed by mmaped and snapshotted data files. So the data layout must be stable and consistent across the entire cluster!

Constants§

ALIGN_BOUNDARY_OFFSET
MAXIMUM_APPEND_VEC_FILE_SIZE

Type Aliases§

StoredMetaWriteVersion