From 24a938191c782716712d2e68dc304b60968af71e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Sep 2016 13:06:56 +0100 Subject: [Minor] Create updates queue befroe periodic updates --- src/fuzzy_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index bdb5f4aa4..feac6e11b 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2236,7 +2236,6 @@ fuzzy_peer_rep (struct rspamd_worker *worker, rspamd_fuzzy_peer_io, ctx); event_base_set (ctx->ev_base, &ctx->peer_ev); event_add (&ctx->peer_ev, NULL); - ctx->updates_pending = g_queue_new (); } } @@ -2284,6 +2283,7 @@ start_fuzzy (struct rspamd_worker *worker) } if (worker->index == 0) { + ctx->updates_pending = g_queue_new (); rspamd_fuzzy_backend_start_update (ctx->backend, ctx->sync_timeout, rspamd_fuzzy_storage_periodic_callback, ctx); } -- cgit v1.2.3