From d6a93927045718f740cb87d33c98910f19e135df Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 26 Oct 2021 10:21:02 -0700 Subject: [PATCH] email_server: Use rollback journal for aliases sqlite DB WAL journaling mode is causing problems with postfix unable to open the database despite ownership and permission changes. Default is the DELETE rollback journal mode. The former gives more performance but in our case, writes are very rare and the DB is used mostly just for reads. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/email_server/aliases.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plinth/modules/email_server/aliases.py b/plinth/modules/email_server/aliases.py index 85f2910ba..e3c9515f2 100644 --- a/plinth/modules/email_server/aliases.py +++ b/plinth/modules/email_server/aliases.py @@ -102,7 +102,6 @@ def first_setup(): # Create schema if not exists query = ''' -PRAGMA journal_mode=WAL; BEGIN; CREATE TABLE IF NOT EXISTS alias ( name TEXT NOT NULL,