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/rspamadm | |
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/rspamadm')
-rw-r--r-- | src/rspamadm/control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index e69a7fe00..de6e48346 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -201,6 +201,10 @@ rspamadm_control (gint argc, gchar **argv) g_ascii_strcasecmp (cmd, "fuzzy_stat") == 0) { path = "/fuzzystat"; } + else if (g_ascii_strcasecmp (cmd, "fuzzysync") == 0 || + g_ascii_strcasecmp (cmd, "fuzzy_sync") == 0) { + path = "/fuzzysync"; + } else { rspamd_fprintf (stderr, "unknown command: %s\n", cmd); exit (1); |