Skip to content

Commit

Permalink
run go fmt to make CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldovich committed May 29, 2024
1 parent deb3ebe commit 33d6ac9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions wal/00walconst.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
// wal implements write-ahead logging
// wal implements write-ahead logging
//
// The layout of log:
// [ installed writes | logged writes | in-memory/logged | unstable in-memory ]
// ^ ^ ^ ^
// 0 memStart diskEnd nextDiskEnd
// The layout of log:
// [ installed writes | logged writes | in-memory/logged | unstable in-memory ]
//
// Blocks in the range [diskEnd, nextDiskEnd) are in the process of
// being logged. Blocks in unstable are unstably committed (i.e.,
// written by NFS Write with the unstable flag and they can be lost
// on crash). Later transactions may absorb them (e.g., a later NFS
// write may update the same inode or indirect block). The code
// implements a policy of postponing writing unstable blocks to disk
// as long as possible to maximize the chance of absorption (i.e.,
// commitWait or log is full). It may better to start logging
// earlier.
// ^ ^ ^ ^
// 0 memStart diskEnd nextDiskEnd
//
// Blocks in the range [diskEnd, nextDiskEnd) are in the process of
// being logged. Blocks in unstable are unstably committed (i.e.,
// written by NFS Write with the unstable flag and they can be lost
// on crash). Later transactions may absorb them (e.g., a later NFS
// write may update the same inode or indirect block). The code
// implements a policy of postponing writing unstable blocks to disk
// as long as possible to maximize the chance of absorption (i.e.,
// commitWait or log is full). It may better to start logging
// earlier.
package wal

import (
Expand Down

0 comments on commit 33d6ac9

Please sign in to comment.