diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 15:30:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 15:30:55 +0000 |
commit | 7ad859ff6b7d9e3d97b768616f9a7d415975955d (patch) | |
tree | d5faae693026dcb8928ba82db89d013e32d1cef5 /src/fuzzy_storage.c | |
parent | e383fd8e4795ea6a24d28cd92be4bac79a91110d (diff) | |
download | rspamd-7ad859ff6b7d9e3d97b768616f9a7d415975955d.tar.gz rspamd-7ad859ff6b7d9e3d97b768616f9a7d415975955d.zip |
Show storage id in fuzzy stat command
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); |