commit 24f973e: [Minor] Sequential upstreams iteration is special
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Nov 9 09:35:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-09 09:30:04 +0000
URL: https://github.com/rspamd/rspamd/commit/24f973e828f0aa313ea8a8fd8f04478db9e0ea9a (HEAD -> master)
[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;
More information about the Commits
mailing list