From 927ff5a8a5ce0138d13977c7a5d4fa8dbaa92101 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2024 15:13:39 +0100 Subject: [PATCH] [Fix] Iterate over dynamic keys in fuzzy storage --- src/fuzzy_storage.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 445289511..97f84e2b6 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2351,6 +2351,12 @@ rspamd_fuzzy_stat_to_ucl(struct rspamd_fuzzy_storage_ctx *ctx, gboolean ip_stat) rspamd_fuzzy_key_stat_iter(pk_iter, fuzzy_key, keys_obj, ip_stat); }); + if (ctx->dynamic_keys) { + kh_foreach(ctx->dynamic_keys, pk_iter, fuzzy_key, { + rspamd_fuzzy_key_stat_iter(pk_iter, fuzzy_key, keys_obj, ip_stat); + }); + } + ucl_object_insert_key(obj, keys_obj, "keys", 0, false); /* Now generic stats */ -- 2.39.5