Skip to content

Commit c3ce51c

Browse files
committed
Fixes.
1 parent 540b12d commit c3ce51c

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10079,7 +10079,7 @@ do_pg_abort_backup(int code, Datum arg)
1007910079
* to require a backup label for recovery. Also recalculate the CRC.
1008010080
*/
1008110081
void
10082-
backup_control_file(uint8_t *controlFile)
10082+
backup_control_file(uint8 *controlFile)
1008310083
{
1008410084
ControlFileData *controlData = ((ControlFileData *)controlFile);
1008510085

@@ -10098,6 +10098,8 @@ backup_control_file(uint8_t *controlFile)
1009810098

1009910099
Assert(crc_ok &&
1010010100
memcmp(dataDisk, controlFile, sizeof(ControlFileData)) == 0);
10101+
10102+
pfree(dataDisk);
1010110103
}
1010210104
#endif
1010310105

src/backend/access/transam/xlogrecovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ InitWalRecovery(ControlFileData *ControlFile, bool *wasShutdown_ptr,
655655
if (ControlFile->backupLabelRequired)
656656
ereport(FATAL,
657657
errmsg("could not find backup_label required for recovery"),
658-
errhint("backup_label must be present for recovery to proceed"));
658+
errhint("restore the backup_label file that was created during the backup."));
659659

660660
/*
661661
* If tablespace_map file is present without backup_label file, there

src/backend/backup/basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ perform_base_backup(basebackup_options *opt, bbsink *sink,
335335
{
336336
bool sendtblspclinks = true;
337337
char *backup_label;
338-
uint8_t controlFile[PG_CONTROL_FILE_SIZE];
338+
uint8 controlFile[PG_CONTROL_FILE_SIZE];
339339

340340
bbsink_begin_archive(sink, "base.tar");
341341

src/include/access/xlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ extern void do_pg_backup_start(const char *backupidstr, bool fast,
326326
StringInfo tblspcmapfile);
327327
extern void do_pg_backup_stop(BackupState *state, bool waitforarchive);
328328
extern void do_pg_abort_backup(int code, Datum arg);
329-
extern void backup_control_file(uint8_t *controlFile);
329+
extern void backup_control_file(uint8 *controlFile);
330330
extern void register_persistent_abort_backup_handler(void);
331331
extern SessionBackupState get_backup_status(void);
332332

0 commit comments

Comments
 (0)