From 33d6ac93c6db9e35c73db3244cb5c8ce6317a498 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Wed, 29 May 2024 09:28:17 -0400 Subject: [PATCH] run go fmt to make CI happy --- wal/00walconst.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/wal/00walconst.go b/wal/00walconst.go index fbd775b..3e2c33b 100644 --- a/wal/00walconst.go +++ b/wal/00walconst.go @@ -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 (