aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs_new.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-02-10 15:14:07 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-02-10 15:18:18 +0200
commitd699ba41349e4ef397222a7223606fa03f4c4870 (patch)
tree58a2754ed9160f942897c1ccb7159b7f4935e484 /src/tutorial/funcs_new.c
parent6c2744f1d3a0d2e456f8d52776c976da3eb8d3a0 (diff)
downloadpostgresql-d699ba41349e4ef397222a7223606fa03f4c4870.tar.gz
postgresql-d699ba41349e4ef397222a7223606fa03f4c4870.zip
Fix WakeupWaiters() to not wake up an exclusive locker unnecessarily.
WakeupWaiters() is supposed to wake up all LW_WAIT_UNTIL_FREE waiters of the slot, but the loop incorrectly also woke up the first LW_EXCLUSIVE waiter, if there was no LW_WAIT_UNTIL_FREE waiters in the queue. Noted by Andres Freund. This code is new in 9.4, so no backpatching.
Diffstat (limited to 'src/tutorial/funcs_new.c')
0 files changed, 0 insertions, 0 deletions