Skip to content

Commit

Permalink
Document the archive file lock
Browse files Browse the repository at this point in the history
  • Loading branch information
InKryption committed Nov 8, 2024
1 parent 1328a98 commit 3699a0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/accountsdb/db.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3699a0e

Please sign in to comment.