From 3b448c447977807e6509422488bd3e42a8c69ad0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 18 Jul 2023 11:53:12 +0200 Subject: mod_storage_sql: Use config enum for 'sqlite_tune' --- plugins/mod_storage_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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;"); -- cgit v1.2.3