]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: memory: make the fault injection code use the OTHER_LOCK label
authorWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 09:09:00 +0000 (11:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 09:26:12 +0000 (11:26 +0200)
commit64a47b943cd51ba23986663ee80f1884c9f76a2f
treef1280de71b2c9039b2bcb50f59a2737c332d3e41
parent619a95f5ad090d2ed6195dd794b244ebe6a9317d
CLEANUP: memory: make the fault injection code use the OTHER_LOCK label

The mem_should_fail() function sets a lock while it's building its
messages, and when this was done there was no relevant label available
hence the confusing use of START_LOCK. Now OTHER_LOCK is available for
such use cases, so let's switch to this one instead as START_LOCK is
going to disappear.
src/memory.c