From: Vsevolod Stakhov Date: Tue, 10 Jul 2018 12:46:54 +0000 (+0100) Subject: [Fix] Fix race condition on maps reinit X-Git-Tag: 1.7.8~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7b92e1c6518603e82134807ab4c9500aafc43fa;p=rspamd.git [Fix] Fix race condition on maps reinit --- 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); } }