]> granicus.if.org Git - postgresql/commit
Fix CRC check handling in get_controlfile
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 28 Sep 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 28 Sep 2016 16:00:00 +0000 (12:00 -0400)
commite79e6c4da152154544913b38354b98d07b65e411
tree5a0c8a6bff3422fc263704dd8dc4bd733c822d4a
parent308985b0b404a5891a1a629f38cc46c2b2dcb4be
Fix CRC check handling in get_controlfile

The previous patch broke this by returning NULL for a failed CRC check,
which pg_controldata would then try to read.  Fix by returning the
result of the CRC check in a separate argument.

Michael Paquier and myself
src/backend/utils/misc/pg_controldata.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_ctl/pg_ctl.c
src/common/controldata_utils.c
src/include/common/controldata_utils.h