diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-06 12:24:54 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-06 12:24:54 +0100 |
commit | ffab92f4ff7f4ba5d34adf51ad9b9125ec7e1d27 (patch) | |
tree | b20569205eed22b9401313e062f65e1d7b40c4a6 /src/fuzzy_storage.c | |
parent | fecf59abe34ff596bd504661f3d82fb996ceaa6c (diff) | |
download | rspamd-ffab92f4ff7f4ba5d34adf51ad9b9125ec7e1d27.tar.gz rspamd-ffab92f4ff7f4ba5d34adf51ad9b9125ec7e1d27.zip |
[Feature] Add more extended statistics about fuzzy updates
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index c6947f1cf..732e60035 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -506,7 +506,12 @@ rspamd_fuzzy_stat_callback (gint fd, gshort what, gpointer ud) } static void -rspamd_fuzzy_updates_cb (gboolean success, void *ud) +rspamd_fuzzy_updates_cb (gboolean success, + guint nadded, + guint ndeleted, + guint nextended, + guint nignored, + void *ud) { struct rspamd_updates_cbdata *cbdata = ud; struct rspamd_fuzzy_mirror *m; @@ -528,8 +533,10 @@ rspamd_fuzzy_updates_cb (gboolean success, void *ud) } } - msg_info ("successfully updated fuzzy storage: %d updates processed", - ctx->updates_pending->len); + msg_info ("successfully updated fuzzy storage: %d updates in queue; " + "%d added, %d deleted, %d extended, %d duplicates", + ctx->updates_pending->len, + nadded, ndeleted, nextended, nignored); /* Clear updates */ ctx->updates_pending->len = 0; rspamd_fuzzy_backend_version (ctx->backend, source, |