chore: fix function name in comment (#579)

Signed-off-by: rustfix <771054535@qq.com>
This commit is contained in:
rustfix
2024-04-15 20:35:56 +08:00
committed by GitHub
parent 94f69a0eb3
commit 5e1c112468

2
db.go
View File

@@ -1305,7 +1305,7 @@ func (db *DB) Checkpoint(ctx context.Context, mode string) (err error) {
return db.checkpoint(ctx, generation, mode)
}
// checkpointAndInit performs a checkpoint on the WAL file and initializes a
// checkpoint performs a checkpoint on the WAL file and initializes a
// new shadow WAL file.
func (db *DB) checkpoint(ctx context.Context, generation, mode string) error {
// Try getting a checkpoint lock, will fail during snapshots.