diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 14:10:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 14:10:36 +0000 |
commit | 9656df37e15b22894143a76d8d96f61ac4d974d5 (patch) | |
tree | fc6c022e46b34293d401206c8509aba3ad81a234 /src/libserver/rspamd_control.h | |
parent | ed6b1e861c1deb28cafbb46bed1e764be3a8d9d3 (diff) | |
download | rspamd-9656df37e15b22894143a76d8d96f61ac4d974d5.tar.gz rspamd-9656df37e15b22894143a76d8d96f61ac4d974d5.zip |
Add command to sync fuzzy storage
It should be as simple as `rspamadm control fuzzy_sync`
Issue: #533
Reported by: @moisseev
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r-- | src/libserver/rspamd_control.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h index 113658e9c..a0d5fba1b 100644 --- a/src/libserver/rspamd_control.h +++ b/src/libserver/rspamd_control.h @@ -30,6 +30,7 @@ enum rspamd_control_type { RSPAMD_CONTROL_RECOMPILE, RSPAMD_CONTROL_HYPERSCAN_LOADED, RSPAMD_CONTROL_FUZZY_STAT, + RSPAMD_CONTROL_FUZZY_SYNC, RSPAMD_CONTROL_MAX }; @@ -60,6 +61,9 @@ struct rspamd_control_command { struct { guint unused; } fuzzy_stat; + struct { + guint unused; + } fuzzy_sync; } cmd; }; @@ -89,6 +93,9 @@ struct rspamd_control_reply { guint status; gchar storage_id[MEMPOOL_UID_LEN]; } fuzzy_stat; + struct { + guint status; + } fuzzy_sync; } reply; }; |