]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Force rspamd to upgrade fuzzy db on opening
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jun 2016 20:02:47 +0000 (22:02 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jun 2016 20:02:47 +0000 (22:02 +0200)
Issue: #649
Reported by: @moisseev

src/libserver/fuzzy_backend.c

index 57cbb729d7e5575e69d6f98aa1be0897c5afcb83..e58e8a546a696570570678b7ec35961650e66e3f 100644 (file)
@@ -431,7 +431,7 @@ rspamd_fuzzy_backend_open_db (const gchar *path, GError **err)
        bk->expired = 0;
        bk->pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "fuzzy_backend");
        bk->db = rspamd_sqlite3_open_or_create (bk->pool, bk->path,
-                       create_tables_sql, 0, err);
+                       create_tables_sql, 1, err);
 
        if (bk->db == NULL) {
                rspamd_fuzzy_backend_close (bk);