aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-17 13:14:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-17 13:14:21 +0000
commit38c959875926962a3a8089a42005224abf736792 (patch)
treee1799ce7383d68bd268cdcfc9015d874e0021479
parent2619184fb0b188be5e088c0e95fa84c4069c097d (diff)
downloadrspamd-38c959875926962a3a8089a42005224abf736792.tar.gz
rspamd-38c959875926962a3a8089a42005224abf736792.zip
[Minor] Add HS_FLAG_SINGLEMATCH for re maps
-rw-r--r--src/libutil/map.c6
1 files 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