pgsql: Observe array length in HaveVirtualXIDsDelayingChkpt(). - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Observe array length in HaveVirtualXIDsDelayingChkpt().
Date
Msg-id E1Umuui-0007kf-Mz@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Observe array length in HaveVirtualXIDsDelayingChkpt().

Since commit f21bb9cfb5646e1793dcc9c0ea697bab99afa523, this function
ignores the caller-provided length and loops until it finds a
terminator, which GetVirtualXIDsDelayingChkpt() never adds.  Restore the
previous loop control logic.  In passing, revert the addition of an
unused variable by the same commit, presumably a debugging relic.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fb435f40d5e34f85076a0af56b2f3bf7b86122b8

Modified Files
--------------
src/backend/access/transam/xlog.c   |    3 ---
src/backend/storage/ipc/procarray.c |   30 ++++++++++++++----------------
2 files changed, 14 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Don't use ordinary NULL-terminated strings as Name datums.
Next
From: Noah Misch
Date:
Subject: pgsql: Don't pass oidvector by value.