perl: Call loadConfFile() in doInit to avoid screwing sqlite journal mode.

If the database is opened through perl bindings (and even though nix.conf has
use-sqlite-wal set to false), the database is automatically converted into WAL
mode. This makes the next nix process to access the database convert it back to
"truncate". If the database is still open at the time in wal mode by the perl
program, this fails and crashes the nix doing the wal -> truncate conversion.
This commit is contained in:
Petr Rockai 2013-11-24 21:22:23 +01:00 committed by Eelco Dolstra
parent 7d203faff6
commit f1e5dedb61

View file

@ -20,6 +20,8 @@ void doInit()
if (!store) {
try {
settings.processEnvironment();
settings.loadConfFile();
settings.update();
settings.lockCPU = false;
store = openStore();
} catch (Error & e) {