mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 10:28:05 +00:00
Feat: Flush WAL on shutdown
This commit is contained in:
parent
72317633d9
commit
ca52047bf5
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue