This commit is contained in:
holger krekel
2020-05-19 14:49:16 +02:00
parent 452c9225dc
commit 71442db39f
3 changed files with 6 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ edition = "2018"
license = "MPL-2.0"
[profile.release]
lto = true
# lto = true
[dependencies]
deltachat_derive = { path = "./deltachat_derive" }

View File

@@ -104,9 +104,10 @@ def pytest_report_header(config, startdir):
ac.shutdown(False)
finally:
os.remove(t)
summary.extend(['Deltachat core={} sqlite={}'.format(
summary.extend(['Deltachat core={} sqlite={} journal_mode={}'.format(
info['deltachat_core_version'],
info['sqlite_version'],
info['journal_mode'],
)])
cfg = config.option.liveconfig

View File

@@ -422,7 +422,9 @@ fn open(
// but even if execute() would handle errors more gracefully, we should continue on errors -
// systems might not be able to handle WAL, in which case the standard-journal is used.
// that may be not optimal, but better than not working at all :)
sql.execute("PRAGMA journal_mode=WAL;", NO_PARAMS).ok();
if std::env::var("DCC_WAL").is_ok() {
sql.execute("PRAGMA journal_mode=WAL;", NO_PARAMS).ok();
}
let mut exists_before_update = false;
let mut dbversion_before_update = 0;