]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use raw interface vstakhov-fuzzy-cxx 4386/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 29 Jan 2023 21:40:39 +0000 (21:40 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 29 Jan 2023 21:40:39 +0000 (21:40 +0000)
src/fuzzy_storage.cxx

index 44bc49f6946f6511cf5543cd6fa5b397ab70630a..2f6471de414a585abb8a42f2072254af197ac2f8 100644 (file)
@@ -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;
        }