diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-09 09:30:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-09 09:30:04 +0000 |
commit | 24f973e828f0aa313ea8a8fd8f04478db9e0ea9a (patch) | |
tree | fcefb590e5dafd64d57f8dec2a1b372fa30f9fcd | |
parent | c02fc6a9ea847c059de4fb5772106541cebe6845 (diff) | |
download | rspamd-24f973e828f0aa313ea8a8fd8f04478db9e0ea9a.tar.gz rspamd-24f973e828f0aa313ea8a8fd8f04478db9e0ea9a.zip |
[Minor] Sequential upstreams iteration is special
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 0e0c3707b..94d694d77 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -1475,7 +1475,7 @@ rspamd_upstream_get_common (struct upstream_list *ups, } RSPAMD_UPSTREAM_UNLOCK (ups); - if (ups->alive->len == 1) { + if (ups->alive->len == 1 && default_type != RSPAMD_UPSTREAM_SEQUENTIAL) { /* Fast path */ up = g_ptr_array_index (ups->alive, 0); goto end; |