aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-18 11:53:12 +0200
committerKim Alvefur <zash@zash.se>2023-07-18 11:53:12 +0200
commit3b448c447977807e6509422488bd3e42a8c69ad0 (patch)
tree78b5305ddfb37c5824f4dcfdaee534db98b403b6
parente1b3be001563903640f869a93392fd452aa9fb16 (diff)
downloadprosody-3b448c447977807e6509422488bd3e42a8c69ad0.tar.gz
prosody-3b448c447977807e6509422488bd3e42a8c69ad0.zip
mod_storage_sql: Use config enum for 'sqlite_tune'
-rw-r--r--plugins/mod_storage_sql.lua2
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;");