pgsql: Fix variable usage in wakeupWaiters()
Started by Alexander Korotkov11 months ago1 messagescommitters
Stepping through
Fix variable usage in wakeupWaiters()
Mistakenly, `i` was used both as an integer representation of lsnType and
an index in wakeUpProcs array.
Discussion: /messages/by-id/CA+hUKG+L0OQR8dQtsNBSaA3FNNyQeFabdeRVzurm0b7Xtp592g@mail.gmail.com
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Ruikai Peng <ruikai@pwno.io>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/bf308639bfcfa38541e24733e074184153a8ab7f
Modified Files
--------------
src/backend/access/transam/xlogwait.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)