From d4f245126bfb584d7026b15bb449184daec3e2fb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 11 Feb 2022 18:29:51 +0300 Subject: Dbx_sqlite: more logs for database compaction --- plugins/Dbx_sqlite/src/dbintf.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/Dbx_sqlite/src') diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 1ae2834f1e..d8b6d83712 100755 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -186,8 +186,11 @@ BOOL CDbxSQLite::Backup(LPCWSTR profile) BOOL CDbxSQLite::Compact() { - sqlite3_exec(m_db, "pragma optimize;", nullptr, nullptr, nullptr); - sqlite3_exec(m_db, "vacuum;", nullptr, nullptr, nullptr); + int rc = sqlite3_exec(m_db, "pragma optimize;", nullptr, nullptr, nullptr); + logError(rc, __FILE__, __LINE__); + + rc = sqlite3_exec(m_db, "vacuum;", nullptr, nullptr, nullptr); + logError(rc, __FILE__, __LINE__); return 0; } -- cgit v1.2.3