diff --git a/src/accountsdb/db.zig b/src/accountsdb/db.zig index 9f41e725d..6f4ec28be 100644 --- a/src/accountsdb/db.zig +++ b/src/accountsdb/db.zig @@ -131,6 +131,7 @@ pub const AccountsDB = struct { /// Used to potentially skip the first `computeAccountHashesAndLamports`. first_snapshot_load_info: RwMux(?SnapshotGenerationInfo), /// Represents the largest slot info used to generate a full snapshot, and optionally an incremental snapshot relative to it, which currently exists. + /// It also protects access to the snapshot archive files it refers to - as in, the caller who has a lock on this has a lock on the snapshot archives. latest_snapshot_gen_info: RwMux(?SnapshotGenerationInfo), // TODO: populate this during snapshot load