Merge changes in master to beta branch (concurrency fixes)

This commit is contained in:
Miroslav Prasil
2018-08-01 11:37:42 +01:00
6 changed files with 79 additions and 32 deletions

View File

@@ -84,6 +84,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() {