pgsql: Observe array length in HaveVirtualXIDsDelayingChkpt().
pgsql: Observe array length in HaveVirtualXIDsDelayingChkpt().
От:
Noah Misch <noah@leadboat.com>
Дата:
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(-)