Software /
code /
prosody
Changeset
13222:cb6a17eaa0e6
mod_storage_sql: Use config enum for 'sqlite_tune'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 18 Jul 2023 11:53:12 +0200 |
parents | 13221:2a9ce229efac |
children | 13223:b88b3e414550 |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Mon Jul 17 04:52:50 2023 +0200 +++ b/plugins/mod_storage_sql.lua Tue Jul 18 11:53:12 2023 +0200 @@ -935,7 +935,7 @@ -- Note: These things can't be changed with in a transaction. LuaDBI -- opens a transaction automatically for every statement(?), so this -- will not work there. - local tune = module:get_option_string("sqlite_tune", "default"); + local tune = module:get_option_enum("sqlite_tune", "default", "normal", "fast", "safe"); if tune == "normal" then if journal_mode ~= "wal" then engine:execute("PRAGMA journal_mode=WAL;");