mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
snap
This commit is contained in:
@@ -6,7 +6,7 @@ edition = "2018"
|
||||
license = "MPL-2.0"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
# lto = true
|
||||
|
||||
[dependencies]
|
||||
deltachat_derive = { path = "./deltachat_derive" }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user