aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-10 13:46:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-10 13:46:54 +0100
commitd7b92e1c6518603e82134807ab4c9500aafc43fa (patch)
treeca34b71e2ed3b035a588735770fcb89660a241e9 /src/rspamd.c
parentb37be54bd865543de40444c95fd6974bbf85609e (diff)
downloadrspamd-d7b92e1c6518603e82134807ab4c9500aafc43fa.tar.gz
rspamd-d7b92e1c6518603e82134807ab4c9500aafc43fa.zip
[Fix] Fix race condition on maps reinit
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index ea7df3eee..4b001948d 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -307,10 +307,10 @@ reread_config (struct rspamd_main *rspamd_main)
REF_RELEASE (tmp_cfg);
}
else {
- rspamd_map_preload (rspamd_main->cfg);
msg_info_main ("replacing config");
REF_RELEASE (old_cfg);
msg_info_main ("config has been reread successfully");
+ rspamd_map_preload (rspamd_main->cfg);
}
}