Browse Source

[Minor] Sequential upstreams iteration is special

pull/3144/head
Vsevolod Stakhov 6 years ago
parent
commit
24f973e828
  1. 2
      src/libutil/upstream.c

2
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;

Loading…
Cancel
Save