}
msg_info ("successfully updated fuzzy storage: %d updates in queue; "
- "%d pending currently; "
- "%d added, %d deleted, %d extended, %d duplicates",
+ "%d pending currently; "
+ "%d added, %d deleted, %d extended, %d duplicates",
cbdata->updates_pending->len,
ctx->updates_pending->len,
nadded, ndeleted, nextended, nignored);
else {
if (++ctx->updates_failed > ctx->updates_maxfail) {
msg_err ("cannot commit update transaction to fuzzy backend, discard "
- "%ud updates after %d retries",
+ "%ud updates after %d retries",
cbdata->updates_pending->len,
ctx->updates_maxfail);
ctx->updates_failed = 0;
cbdata->updates_pending = ctx->updates_pending;
ctx->updates_pending = g_array_sized_new (FALSE, FALSE,
sizeof (struct fuzzy_peer_cmd),
- MAX (ctx->updates_pending->len, 1024));
+ MAX (cbdata->updates_pending->len, 1024));
cbdata->source = g_strdup (source);
rspamd_fuzzy_backend_process_updates (ctx->backend,
cbdata->updates_pending,
msg_warn_config ("composite %s is redefined", name);
new = FALSE;
}
- composite = rspamd_mempool_alloc (cfg->cfg_pool,
+
+ composite = rspamd_mempool_alloc0 (cfg->cfg_pool,
sizeof (struct rspamd_composite));
composite->expr = expr;
composite->id = g_hash_table_size (cfg->composite_symbols);