StoredMetaWriteVersion (#17293)

This commit is contained in:
Jeff Washington (jwash)
2021-05-17 18:58:36 -05:00
committed by GitHub
parent f15dd1b4ef
commit 3a56a56d69
3 changed files with 18 additions and 10 deletions

View File

@@ -32,13 +32,15 @@ macro_rules! u64_align {
const MAXIMUM_APPEND_VEC_FILE_SIZE: usize = 16 * 1024 * 1024 * 1024; // 16 GiB
pub type StoredMetaWriteVersion = u64;
/// 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!
#[derive(Clone, PartialEq, Debug)]
pub struct StoredMeta {
/// global write version
pub write_version: u64,
pub write_version: StoredMetaWriteVersion,
/// key for the account
pub pubkey: Pubkey,
pub data_len: u64,