From 38c959875926962a3a8089a42005224abf736792 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 13:14:21 +0000 Subject: [PATCH] [Minor] Add HS_FLAG_SINGLEMATCH for re maps --- src/libutil/map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libutil/map.c b/src/libutil/map.c index b40d27bd0..e960b32fd 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -566,7 +566,7 @@ file_callback (gint fd, short what, void *ud) pool = map->pool; if (!g_atomic_int_compare_and_exchange (map->locked, 0, 1)) { - msg_info_pool ( + msg_debug_pool ( "don't try to reread map as it is locked by other process, will reread it later"); jitter_timeout_event (map, TRUE, FALSE, FALSE); return; @@ -664,7 +664,7 @@ http_callback (gint fd, short what, void *ud) pool = map->pool; if (!g_atomic_int_compare_and_exchange (map->locked, 0, 1)) { - msg_info_pool ( + msg_debug_pool ( "don't try to reread map as it is locked by other process, will reread it later"); jitter_timeout_event (map, TRUE, FALSE, FALSE); return; @@ -1556,7 +1556,7 @@ rspamd_re_map_finalize (struct rspamd_regexp_map *re_map) for (i = 0; i < re_map->regexps->len; i ++) { re = g_ptr_array_index (re_map->regexps, i); re_map->patterns[i] = rspamd_regexp_get_pattern (re); - re_map->flags[i] = 0; + re_map->flags[i] = HS_FLAG_SINGLEMATCH; pcre_flags = rspamd_regexp_get_pcre_flags (re); #ifndef WITH_PCRE2 -- 2.39.5