mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 08:56:52 +02:00
Feat: Flush WAL on shutdown
This commit is contained in:
parent
72317633d9
commit
ca52047bf5
@ -434,6 +434,9 @@ class Database {
|
||||
|
||||
log.info("db", "Closing the database");
|
||||
|
||||
// Flush WAL to main database
|
||||
await R.exec("PRAGMA wal_checkpoint(TRUNCATE)");
|
||||
|
||||
while (true) {
|
||||
Database.noReject = true;
|
||||
await R.close();
|
||||
|
Loading…
Reference in New Issue
Block a user