diff --git a/db.go b/db.go index bfe5fe46..bb015c06 100644 --- a/db.go +++ b/db.go @@ -1301,7 +1301,10 @@ func (db *DB) Checkpoint(ctx context.Context, mode string) (err error) { generation, err := db.CurrentGeneration() if err != nil { return fmt.Errorf("cannot determine generation: %w", err) + } else if generation == "" { + return fmt.Errorf("no current generation") } + return db.checkpoint(ctx, generation, mode) }