Browse Source

[Minor] Sequential upstreams iteration is special

tags/2.2
Vsevolod Stakhov 4 years ago
parent
commit
24f973e828
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libutil/upstream.c

+ 1
- 1
src/libutil/upstream.c View File

@@ -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