diff options
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index bd9337a54..c6b2a3be0 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -26,6 +26,7 @@ * Rspamd fuzzy storage server */ +#include <libserver/rspamd_control.h> #include "config.h" #include "util.h" #include "rspamd.h" @@ -856,6 +857,10 @@ rspamd_fuzzy_storage_stat (struct rspamd_main *rspamd_main, else { rep.reply.fuzzy_stat.status = 0; + memcpy (rep.reply.fuzzy_stat.storage_id, + rspamd_fuzzy_backend_id (ctx->backend), + sizeof (rep.reply.fuzzy_stat.storage_id)); + /* Iterate over all keys */ obj = ucl_object_typed_new (UCL_OBJECT); g_hash_table_iter_init (&it, ctx->keys); |