]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: fix expire date wasn't updated if entry is modified remotely.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 22 Jan 2018 14:10:08 +0000 (15:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Jan 2018 15:03:25 +0000 (16:03 +0100)
commit55482913956581223dc9b54e480675610e2e177e
tree4ddf55842933f1398f2c0e2273d4c29ef0acaae5
parenta792a0aa9344605a94749dc431a43778432b2311
BUG/MEDIUM: peers: fix expire date wasn't updated if entry is modified remotely.

The stktable_touch_remote considers the expire field stored in the stksess
struct.
The expire field was updated on the a newly created stksess to store.

But if the stksess with a same key is still present the expire was not updated.

This patch postpones the update of the expire field of the stksess just before
processing the "touch".

These bug was introduced in commit:

MEDIUM: threads/stick-tables: handle multithreads on stick tables.

And the fix should be backported on 1.8.
src/peers.c