~aleteoryx/muditaos

7ed58f9a9b045d50cf7389a6a0cfc4aaafaca016 — Lucjan Bryndza 4 years ago cd2cbbb
[EGD-6767] Disable WALL mechanism in the DB

Wall mechanism is not needed due to the littlefs
fail proofs safety. It causes a lot of troubles
in the frame recovery and unnessesry increases
io bandwidth

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
1 files changed, 0 insertions(+), 1 deletions(-)

M module-db/Database/Database.cpp
M module-db/Database/Database.cpp => module-db/Database/Database.cpp +0 -1
@@ 85,7 85,6 @@ Database::Database(const char *name, bool readOnly)
    initQueryStatementBuffer();
    pragmaQuery("PRAGMA integrity_check;");
    pragmaQuery("PRAGMA locking_mode=EXCLUSIVE");
    pragmaQuery("PRAGMA journal_mode=WAL");

    const auto filePath = (purefs::dir::getUserDiskPath() / "db");
    LOG_INFO("Running scripts: %s", filePath.c_str());