diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-15 13:43:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-15 13:43:05 +0000 |
commit | d907a95ac2e2cad6f7f65c4323f031f7931ae18b (patch) | |
tree | cea6d394f386277d475832b548664937877ccc60 /src/libserver | |
parent | dfd698fe1c9c5fd32155c78d6f9e95526fe06999 (diff) | |
download | rspamd-d907a95ac2e2cad6f7f65c4323f031f7931ae18b.tar.gz rspamd-d907a95ac2e2cad6f7f65c4323f031f7931ae18b.zip |
[Minor] Fix build with no hyperscan
Issue: #4702
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/rspamd_control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index 986a4a2ea..69af0597f 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -922,6 +922,7 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents) } break; case RSPAMD_SRV_HYPERSCAN_LOADED: +#ifdef WITH_HYPERSCAN /* Load RE cache to provide it for new forks */ if (rspamd_re_cache_is_hs_loaded(rspamd_main->cfg->re_cache) != RSPAMD_HYPERSCAN_LOADED_FULL || cmd.cmd.hs_loaded.forced) { @@ -932,7 +933,9 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents) } /* After getting this notice, we can clean up old hyperscan files */ + rspamd_hyperscan_notice_loaded(); + msg_info_main("received hyperscan cache loaded from %s", cmd.cmd.hs_loaded.cache_dir); @@ -945,6 +948,7 @@ rspamd_srv_handler(EV_P_ ev_io *w, int revents) wcmd.cmd.hs_loaded.forced = cmd.cmd.hs_loaded.forced; rspamd_control_broadcast_cmd(rspamd_main, &wcmd, rfd, rspamd_control_ignore_io_handler, NULL, worker->pid); +#endif break; case RSPAMD_SRV_MONITORED_CHANGE: /* Broadcast command to all workers */ |