]> source.dussan.org Git - rspamd.git/commitdiff
Add checkpoints to learn cache
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jan 2016 16:45:42 +0000 (16:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jan 2016 16:45:42 +0000 (16:45 +0000)
src/libstat/learn_cache/sqlite3_cache.c

index 36048455af2312c1281ee654408e6d6dfb556e92..76d1cbdb82ec9d32b361187efd3d9a04cb44dc15 100644 (file)
@@ -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;
 }