mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 16:36:50 +02:00
WAL journal mode and delete retry added
This commit is contained in:
1 parent
98bae4a0a1
commit
2872f40d13
2 files changed
+30
-6
No files matched your search
@@ -83,6 +83,11 @@ fn check_db() {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
// Turn on WAL in SQLite
|
||||
use diesel::RunQueryDsl;
|
||||
let connection = db::get_connection().expect("Can't conect to DB");
|
||||
diesel::sql_query("PRAGMA journal_mode=wal").execute(&connection).expect("Failed to turn on WAL");
|
||||
}
|
||||
|
||||
fn check_rsa_keys() {
|
||||
|
||||
Reference in new issue
Block a user