pgsql: Fix incorrect assertion bound in WaitForLSN() - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Fix incorrect assertion bound in WaitForLSN()
Date
Msg-id E1vR57v-002jVa-22@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix incorrect assertion bound in WaitForLSN()

The assertion checking MyProcNumber used MaxBackends as the upper
bound, but the procInfos array is allocated with size
MaxBackends + NUM_AUXILIARY_PROCS. This inconsistency would cause
a false assertion failure if an auxiliary process calls WaitForLSN().

Author: Xuneng Zhou <xunengzhou@gmail.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d6ef8ee3ee29ffa404bcd920e02fb4b196e07b0d

Modified Files
--------------
src/backend/access/transam/xlogwait.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Add pg_atomic_unlocked_write_u64
Next
From: Peter Eisentraut
Date:
Subject: pgsql: headerscheck: Use LLVM_CPPFLAGS