Accountsdb plugin write ordering (#20948) (#20964)

Use the write_version in the Accounts's meta data so that account write with lower write_version would not overwrite the higher ones.
This commit is contained in:
Lijun Wang
2021-10-26 00:05:40 -07:00
committed by GitHub
parent b15e87631c
commit 782d143489
7 changed files with 104 additions and 144 deletions

View File

@@ -17,6 +17,7 @@ pub struct ReplicaAccountInfo<'a> {
pub executable: bool,
pub rent_epoch: u64,
pub data: &'a [u8],
pub write_version: u64,
}
pub enum ReplicaAccountInfoVersions<'a> {