Skip to content

Commit

Permalink
Restore without SQLITE_FCNTL_PERSIST_WAL
Browse files Browse the repository at this point in the history
Otherwise we leave .tmp-wal and .tmp-shm files around after.

Fixes benbjohnson#528
  • Loading branch information
hifi committed Dec 16, 2023
1 parent c633eb1 commit 4a0096d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ func applyWAL(ctx context.Context, index int, dbPath string) error {
}

// Open SQLite database and force a truncating checkpoint.
d, err := sql.Open("litestream-sqlite3", dbPath)
d, err := sql.Open("sqlite3", dbPath)
if err != nil {
return err
}
Expand Down

0 comments on commit 4a0096d

Please sign in to comment.