From 974ec80a206f4e797e88dbb3a429b53667e327c5 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:37:52 +0100 Subject: [PATCH] [chore] Change default sqlite busy timeout to 5m (#1352) --- docs/configuration/database.md | 2 +- example/config.yaml | 2 +- internal/config/defaults.go | 2 +- testrig/config.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration/database.md b/docs/configuration/database.md index 90487c17b..38514e036 100644 --- a/docs/configuration/database.md +++ b/docs/configuration/database.md @@ -138,5 +138,5 @@ db-sqlite-cache-size: "64MiB" # See: https://www.sqlite.org/pragma.html#pragma_busy_timeout # Examples: ["0s", "1s", "30s", "1m", "5m"] # Default: "5s" -db-sqlite-busy-timeout: "30s" +db-sqlite-busy-timeout: "5m" ``` diff --git a/example/config.yaml b/example/config.yaml index 5ce622a88..5b2aacc1c 100644 --- a/example/config.yaml +++ b/example/config.yaml @@ -194,7 +194,7 @@ db-sqlite-cache-size: "64MiB" # See: https://www.sqlite.org/pragma.html#pragma_busy_timeout # Examples: ["0s", "1s", "30s", "1m", "5m"] # Default: "5s" -db-sqlite-busy-timeout: "30s" +db-sqlite-busy-timeout: "5m" cache: gts: diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 31f282113..3cd1a3ed3 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -51,7 +51,7 @@ DbSqliteJournalMode: "WAL", DbSqliteSynchronous: "NORMAL", DbSqliteCacheSize: 64 * bytesize.MiB, - DbSqliteBusyTimeout: time.Second * 30, + DbSqliteBusyTimeout: time.Minute * 5, WebTemplateBaseDir: "./web/template/", WebAssetBaseDir: "./web/assets/", diff --git a/testrig/config.go b/testrig/config.go index 315e52bb9..08c1feb06 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -55,7 +55,7 @@ func InitTestConfig() { DbSqliteJournalMode: "WAL", DbSqliteSynchronous: "NORMAL", DbSqliteCacheSize: 64 * bytesize.MiB, - DbSqliteBusyTimeout: time.Second * 30, + DbSqliteBusyTimeout: time.Minute * 5, WebTemplateBaseDir: "./web/template/", WebAssetBaseDir: "./web/assets/",