mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 07:49:54 +00:00
BUG/MEDIUM: threads/cli: fix "show sess" locking on release
The recent thread updates on the CLI broke "show sess" by unlocking the stream twice instead of lock+unlock. No backport is needed.
This commit is contained in:
parent
22cf59bbba
commit
7ce3f09513
@ -3252,7 +3252,7 @@ static int cli_io_handler_dump_sess(struct appctx *appctx)
|
||||
static void cli_release_show_sess(struct appctx *appctx)
|
||||
{
|
||||
if (appctx->st2 == STAT_ST_LIST) {
|
||||
HA_SPIN_UNLOCK(STRMS_LOCK, &streams_lock);
|
||||
HA_SPIN_LOCK(STRMS_LOCK, &streams_lock);
|
||||
if (!LIST_ISEMPTY(&appctx->ctx.sess.bref.users))
|
||||
LIST_DEL(&appctx->ctx.sess.bref.users);
|
||||
HA_SPIN_UNLOCK(STRMS_LOCK, &streams_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user