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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to