* Rspamd fuzzy storage server
*/
+#include <libserver/rspamd_control.h>
#include "config.h"
#include "util.h"
#include "rspamd.h"
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);
ucl_parser_free (parser);
}
+
+ ucl_object_insert_key (cur,
+ ucl_object_fromlstring (
+ elt->reply.reply.fuzzy_stat.storage_id,
+ MEMPOOL_UID_LEN - 1),
+ "id",
+ 0,
+ false);
}
else {
ucl_object_insert_key (cur,