diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 11:46:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-19 11:46:35 +0100 |
commit | 1bd9b92735543e0ad651a60f2b05c567e8139933 (patch) | |
tree | bd9466b379b4d87f1bac189a66fb26aa63c0eb4a /src/libutil/map.h | |
parent | e45def994b2f6b493233d485552d4251898687b2 (diff) | |
download | rspamd-1bd9b92735543e0ad651a60f2b05c567e8139933.tar.gz rspamd-1bd9b92735543e0ad651a60f2b05c567e8139933.zip |
[CritFix] Fix maps race conditions on reload
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r-- | src/libutil/map.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h index e12df4369..9c7485c58 100644 --- a/src/libutil/map.h +++ b/src/libutil/map.h @@ -78,8 +78,11 @@ struct rspamd_map* rspamd_map_add_from_ucl (struct rspamd_config *cfg, /** * Start watching of maps by adding events to libevent event loop */ -void rspamd_map_watch (struct rspamd_config *cfg, struct event_base *ev_base, - struct rspamd_dns_resolver *resolver, gboolean active_http); +void rspamd_map_watch (struct rspamd_config *cfg, + struct event_base *ev_base, + struct rspamd_dns_resolver *resolver, + struct rspamd_worker *worker, + gboolean active_http); /** * Remove all maps watched (remove events) |