Mercurial > prosody-hg
diff plugins/mod_storage_sql.lua @ 13969:1b300c5a79d7
Merge 13.0->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 30 Sep 2025 18:20:17 +0200 |
| parents | 758d5d4e83ca b7714c28442f |
| children | f82be93b61a5 |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Mon Aug 19 00:15:40 2024 +0200 +++ b/plugins/mod_storage_sql.lua Tue Sep 30 18:20:17 2025 +0200 @@ -995,6 +995,8 @@ engine:execute("PRAGMA fullfsync=1;") end + engine:execute(("PRAGMA busy_timeout=%d;"):format(module:get_option_integer("sqlite_busy_timeout_ms", 1000, 0))); + for row in engine:select[[PRAGMA journal_mode;]] do journal_mode = row[1]; end
