Fix CRC check handling in get_controlfile
Peter Eisentraut <peter_e@gmx.net>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/misc/pg_controldata.c | modified | +12 −8 |
| src/bin/pg_controldata/pg_controldata.c | modified | +3 −2 |
| src/bin/pg_ctl/pg_ctl.c | modified | +7 −17 |
| src/common/controldata_utils.c | modified | +9 −10 |
| src/include/common/controldata_utils.h | modified | +1 −1 |