diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-12-07 19:26:08 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-07 19:26:08 -0600 |
| commit | ae7256b4d6ac9a00600c07af75b3097b4d4f4cbf (patch) | |
| tree | 2d47fd53fb9951be663e71b1a3071d401dea6683 /src/slskd/Shares | |
| parent | a73633f5fc421b4f3f14536867aa2f24914cd4c4 (diff) | |
| parent | 5e5126028ae7cf9a9d4ad87bc24033af69ec8e8e (diff) | |
| download | slskd-ae7256b4d6ac9a00600c07af75b3097b4d4f4cbf.tar.gz | |
Merge branch 'master' into add-rev-proxy-instructions
Diffstat (limited to 'src/slskd/Shares')
| -rw-r--r-- | src/slskd/Shares/SqliteShareRepository.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Shares/SqliteShareRepository.cs b/src/slskd/Shares/SqliteShareRepository.cs index f457adba..711bb21e 100644 --- a/src/slskd/Shares/SqliteShareRepository.cs +++ b/src/slskd/Shares/SqliteShareRepository.cs @@ -157,7 +157,9 @@ namespace slskd.Shares { using var conn = GetConnection(); - conn.ExecuteNonQuery("PRAGMA journal_mode=WAL"); + // warning: with synchronous=0, an operating system crash can leave the database corrupted. + // if this occurs we should generate a new one, so this is _probably_ ok + conn.ExecuteNonQuery("PRAGMA journal_mode=WAL; PRAGMA synchronous=0;"); if (discardExisting) { |
