diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp index 00b3c4ff..d66512df 100644 --- a/td/telegram/TdDb.cpp +++ b/td/telegram/TdDb.cpp @@ -133,11 +133,11 @@ Status init_binlog(Binlog &binlog, string path, BinlogKeyValue &binlog_p Status init_db(SqliteDb &db) { TRY_STATUS(db.exec("PRAGMA encoding=\"UTF-8\"")); - TRY_STATUS(db.exec("PRAGMA journal_mode=WAL")); + TRY_STATUS(db.exec("PRAGMA journal_mode=TRUNCATE")); TRY_STATUS(db.exec("PRAGMA synchronous=NORMAL")); TRY_STATUS(db.exec("PRAGMA temp_store=MEMORY")); - TRY_STATUS(db.exec("PRAGMA secure_delete=1")); + TRY_STATUS(db.exec("PRAGMA secure_delete=0")); return Status::OK(); }