]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix variable usage in wakeupWaiters()
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 6 Jan 2026 08:03:26 +0000 (10:03 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 6 Jan 2026 08:04:28 +0000 (10:04 +0200)
commitbf308639bfcfa38541e24733e074184153a8ab7f
tree6193ed0b3c90393c8b47c73a9dbd9913fbdccc26
parent8b9b93e39b10ce32577eca3c84face880fc8aff0
Fix variable usage in wakeupWaiters()

Mistakenly, `i` was used both as an integer representation of lsnType and
an index in wakeUpProcs array.

Discussion: https://postgr.es/m/CA%2BhUKG%2BL0OQR8dQtsNBSaA3FNNyQeFabdeRVzurm0b7Xtp592g%40mail.gmail.com
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Ruikai Peng <ruikai@pwno.io>
src/backend/access/transam/xlogwait.c