From 24f973e828f0aa313ea8a8fd8f04478db9e0ea9a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 9 Nov 2019 09:30:04 +0000 Subject: [PATCH] [Minor] Sequential upstreams iteration is special --- src/libutil/upstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5