From 5c2800abffc76649dc86b38d94cbd4f94021f0d9 Mon Sep 17 00:00:00 2001 From: Alexander Kozlovsky Date: Thu, 23 May 2024 12:05:00 +0200 Subject: [PATCH] Change the WAL journal mode back to the default DELETE mode --- src/tribler/core/components/database/db/store.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tribler/core/components/database/db/store.py b/src/tribler/core/components/database/db/store.py index 6e5f733a5b9..c1e48c221e0 100644 --- a/src/tribler/core/components/database/db/store.py +++ b/src/tribler/core/components/database/db/store.py @@ -136,7 +136,7 @@ def __init__( @self.db.on_connect def on_connect(_, connection): cursor = connection.cursor() - cursor.execute("PRAGMA journal_mode = WAL") + cursor.execute("PRAGMA journal_mode = DELETE") cursor.execute("PRAGMA synchronous = NORMAL") cursor.execute("PRAGMA temp_store = MEMORY") cursor.execute("PRAGMA foreign_keys = ON")