CLEANUP: backend: remove impossible case of round-robin + consistent hash
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Jun 2021 15:31:51 +0000 (17:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Jun 2021 17:21:11 +0000 (19:21 +0200)
commit5ffb045ed12f14a0367bcb0aa39931806c84357a
tree3729a767bb971d3c58913f2023dfcd7c7d2ebfb7
parent772e968b06f9348afea7f5785c97214a84c75d19
CLEANUP: backend: remove impossible case of round-robin + consistent hash

In 1.4, consistent hashing was brought by commit 6b2e11be1 ("[MEDIUM]
backend: implement consistent hashing variation") which took care of
replacing all direct calls to map_get_server_rr() with an alternate
call to chash_get_next_server() if consistent hash was being used.

One of them, however, cannot happen because a preliminary test for
static round-robin is being done prior to the call, so we're certain
that if it matches it cannot use a consistent hash tree.

Let's remove it.
src/backend.c