diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 14:04:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-30 14:05:50 +0100 |
commit | 15b0796571b8a00408ffddc766191f5d7455d96d (patch) | |
tree | 78dfc9fb5ba825b8f920737e24a42f05ba35ddf0 /src/libserver/fuzzy_backend.c | |
parent | e8e5b8165afa39c7f1c44afcb2a4f1e96d187164 (diff) | |
download | rspamd-15b0796571b8a00408ffddc766191f5d7455d96d.tar.gz rspamd-15b0796571b8a00408ffddc766191f5d7455d96d.zip |
Print result of sqlite_exec in fuzzy_backend.
Diffstat (limited to 'src/libserver/fuzzy_backend.c')
-rw-r--r-- | src/libserver/fuzzy_backend.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 0cf2f8cfa..fb0a385a2 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -404,8 +404,9 @@ rspamd_fuzzy_backend_open_db (const gchar *path, GError **err) prepared_stmts[RSPAMD_FUZZY_BACKEND_COUNT].stmt, 0); } - if (sqlite3_exec (sqlite, sqlite_wal, NULL, NULL, NULL) != SQLITE_OK) { - msg_warn ("WAL mode is not supported, locking issues might occur"); + if ((rc = sqlite3_exec (sqlite, sqlite_wal, NULL, NULL, NULL)) != SQLITE_OK) { + msg_warn ("WAL mode is not supported (%d), locking issues might occur", + rc); sqlite3_exec (sqlite, fallback_journal, NULL, NULL, NULL); } |