MINOR: queue: simplify pendconn_unlink() regarding srv vs px
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Jun 2021 14:54:16 +0000 (16:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jun 2021 08:52:31 +0000 (10:52 +0200)
commitd03adce575e352a5ef6ebf1dcd64bf636655d4d8
tree493d2921bdd08a3c1ee175b3d9291fc3c56c85f9
parent51c63f0f0a9a629f298bfaeda158599707e562f4
MINOR: queue: simplify pendconn_unlink() regarding srv vs px

Since the code paths became exactly the same except for what log field
to update, let's simplify the code and move further code out of the
lock. The queue position update and the test for server vs proxy do not
need to be inside the lock.
src/queue.c