From: Vsevolod Stakhov Date: Sat, 9 Nov 2019 09:30:04 +0000 (+0000) Subject: [Minor] Sequential upstreams iteration is special X-Git-Tag: 2.2~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24f973e828f0aa313ea8a8fd8f04478db9e0ea9a;p=thirdparty%2Frspamd.git [Minor] Sequential upstreams iteration is special --- diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 0e0c3707b0..94d694d776 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;