Skip to content

Commit

Permalink
Fix typos in header layout docs and Durability descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mconst committed Nov 9, 2024
1 parent 28aa5e9 commit f9df354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ database file.
| magic number |
| magic con.| god byte | padding | page size |
| region header pages | region max data pages |
| region tracker page number |
| number of full regions | data pages in trailing region |
| region tracker page number |
| padding |
| padding |
| padding |
Expand Down
4 changes: 2 additions & 2 deletions src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ pub enum Durability {
/// the ability to cause the database process to crash, can cause invalid data to be written
/// with a valid checksum, leaving the database in an invalid, attacker-controlled state.
Immediate,
/// Commits with this durability level have the same gaurantees as [`Durability::Immediate`]
/// Commits with this durability level have the same guarantees as [`Durability::Immediate`]
///
/// Additionally, aata is written with the following 2-phase commit algorithm:
/// Additionally, data is written with the following 2-phase commit algorithm:
///
/// 1. Update the inactive commit slot with the new database state
/// 2. Call `fsync` to ensure the database slate and commit slot update have been persisted
Expand Down

0 comments on commit f9df354

Please sign in to comment.