Fix variable usage in wakeupWaiters()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: bf308639bfcfa38541e24733e074184153a8ab7f
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2026-01-06T08:04:28Z
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>

Files

PathChange+/−
src/backend/access/transam/xlogwait.c modified +4 −2

Discussion