From: Vsevolod Stakhov Date: Thu, 21 Jan 2016 16:45:42 +0000 (+0000) Subject: Add checkpoints to learn cache X-Git-Tag: 1.1.2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4494f51f1de826c56e53ea775eb3d5d8d8c3b1;p=thirdparty%2Frspamd.git Add checkpoints to learn cache --- diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c index 36048455af..76d1cbdb82 100644 --- a/src/libstat/learn_cache/sqlite3_cache.c +++ b/src/libstat/learn_cache/sqlite3_cache.c @@ -275,6 +275,8 @@ rspamd_stat_cache_sqlite3_learn (struct rspamd_task *task, RSPAMD_STAT_CACHE_TRANSACTION_COMMIT); } + rspamd_sqlite3_sync (ctx->db, NULL, NULL); + return RSPAMD_LEARN_OK; }