From 5c53d46589f9793bdeac544cd84705466af081c0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 29 Jan 2023 21:40:39 +0000 Subject: [PATCH] [Minor] Use raw interface --- src/fuzzy_storage.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fuzzy_storage.cxx b/src/fuzzy_storage.cxx index 44bc49f69..2f6471de4 100644 --- a/src/fuzzy_storage.cxx +++ b/src/fuzzy_storage.cxx @@ -631,7 +631,8 @@ rspamd_fuzzy_process_updates_queue(struct rspamd_fuzzy_storage_ctx *ctx, auto cbdata = new rspamd_updates_cbdata{std::max(ctx->updates_pending->size(), std::size_t{1024}), ctx, source, final}; std::swap(ctx->updates_pending, cbdata->updates_pending); rspamd_fuzzy_backend_process_updates(ctx->backend, - cbdata->updates_pending, + cbdata->updates_pending->data(), + cbdata->updates_pending->size(), source, rspamd_fuzzy_updates_cb, (void *)cbdata); return true; } -- 2.39.5