mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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
This commit is contained in:
@ -12,6 +12,6 @@
|
||||
|
||||
#include "catalog/pg_control.h"
|
||||
|
||||
extern ControlFileData *get_controlfile(const char *DataDir, const char *progname);
|
||||
extern ControlFileData *get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p);
|
||||
|
||||
#endif /* COMMON_CONTROLDATA_UTILS_H */
|
||||
|
Reference in New Issue
Block a user