summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-02-11 18:29:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-02-11 18:29:51 +0300
commitd4f245126bfb584d7026b15bb449184daec3e2fb (patch)
tree3dd79ce4f8a43aaceb32e4c2d0dca325cee720b9 /plugins/Dbx_sqlite/src
parent39f5fe96a08c5a5de95c28297f5561a9d038fd04 (diff)
Dbx_sqlite: more logs for database compaction
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp7
1 files changed, 5 insertions, 2 deletions
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;
}