aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-19 11:46:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-19 11:46:35 +0100
commit1bd9b92735543e0ad651a60f2b05c567e8139933 (patch)
treebd9466b379b4d87f1bac189a66fb26aa63c0eb4a /src/libutil/map.h
parente45def994b2f6b493233d485552d4251898687b2 (diff)
downloadrspamd-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.h7
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)