mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
snap
This commit is contained in:
@@ -6,7 +6,7 @@ edition = "2018"
|
|||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
# lto = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
deltachat_derive = { path = "./deltachat_derive" }
|
deltachat_derive = { path = "./deltachat_derive" }
|
||||||
|
|||||||
@@ -104,9 +104,10 @@ def pytest_report_header(config, startdir):
|
|||||||
ac.shutdown(False)
|
ac.shutdown(False)
|
||||||
finally:
|
finally:
|
||||||
os.remove(t)
|
os.remove(t)
|
||||||
summary.extend(['Deltachat core={} sqlite={}'.format(
|
summary.extend(['Deltachat core={} sqlite={} journal_mode={}'.format(
|
||||||
info['deltachat_core_version'],
|
info['deltachat_core_version'],
|
||||||
info['sqlite_version'],
|
info['sqlite_version'],
|
||||||
|
info['journal_mode'],
|
||||||
)])
|
)])
|
||||||
|
|
||||||
cfg = config.option.liveconfig
|
cfg = config.option.liveconfig
|
||||||
|
|||||||
@@ -422,7 +422,9 @@ fn open(
|
|||||||
// but even if execute() would handle errors more gracefully, we should continue on errors -
|
// 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.
|
// 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 :)
|
// that may be not optimal, but better than not working at all :)
|
||||||
|
if std::env::var("DCC_WAL").is_ok() {
|
||||||
sql.execute("PRAGMA journal_mode=WAL;", NO_PARAMS).ok();
|
sql.execute("PRAGMA journal_mode=WAL;", NO_PARAMS).ok();
|
||||||
|
}
|
||||||
|
|
||||||
let mut exists_before_update = false;
|
let mut exists_before_update = false;
|
||||||
let mut dbversion_before_update = 0;
|
let mut dbversion_before_update = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user