diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-18 11:53:12 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-18 11:53:12 +0200 |
commit | 3b448c447977807e6509422488bd3e42a8c69ad0 (patch) | |
tree | 78b5305ddfb37c5824f4dcfdaee534db98b403b6 | |
parent | e1b3be001563903640f869a93392fd452aa9fb16 (diff) | |
download | prosody-3b448c447977807e6509422488bd3e42a8c69ad0.tar.gz prosody-3b448c447977807e6509422488bd3e42a8c69ad0.zip |
mod_storage_sql: Use config enum for 'sqlite_tune'
-rw-r--r-- | plugins/mod_storage_sql.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index fe7d2ef0..b97b0582 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -935,7 +935,7 @@ function module.load() -- 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;"); |