From d6a113396a0a3512c7ac5975eaafb5fba2c46a36 Mon Sep 17 00:00:00 2001 From: Joseph Benguira Date: Mon, 1 Aug 2022 13:18:19 +0300 Subject: [PATCH] Update server/database.js Co-authored-by: Adam Stachowicz --- server/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/database.js b/server/database.js index 5f87352b9..b4865b1f0 100644 --- a/server/database.js +++ b/server/database.js @@ -147,7 +147,7 @@ class Database { await R.exec("PRAGMA cache_size = -12000"); await R.exec("PRAGMA auto_vacuum = FULL"); - //Avoid error "SQLITE_BUSY: database is locked" by allowing SQLITE to wait up to 5 seconds to do a write + // Avoid error "SQLITE_BUSY: database is locked" by allowing SQLITE to wait up to 5 seconds to do a write await R.exec("PRAGMA busy_timeout = 5000"); // This ensures that an operating system crash or power failure will not corrupt the database.