]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix race condition on maps reinit
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Jul 2018 12:46:54 +0000 (13:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Jul 2018 12:46:54 +0000 (13:46 +0100)
src/rspamd.c

index ea7df3eeea49da6b4d1d876fd33a345a7107145c..4b001948d2fd0bc4885fb382e860312d2c546bba 100644 (file)
@@ -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);
        }
 }