From: Vsevolod Stakhov Date: Thu, 2 Jun 2016 20:02:47 +0000 (+0200) Subject: [Fix] Force rspamd to upgrade fuzzy db on opening X-Git-Tag: 1.3.0~407 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a0579fd5ab6dd22745d780cc64754de3dcf861f;p=rspamd.git [Fix] Force rspamd to upgrade fuzzy db on opening Issue: #649 Reported by: @moisseev --- diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 57cbb729d..e58e8a546 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -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);