From: Vsevolod Stakhov Date: Tue, 6 Sep 2016 12:06:56 +0000 (+0100) Subject: [Minor] Create updates queue befroe periodic updates X-Git-Tag: 1.4.0~482 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=24a938191c782716712d2e68dc304b60968af71e;p=rspamd.git [Minor] Create updates queue befroe periodic updates --- 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); }