Skip to content

Commit 8a65fc8

Browse files
committed
[Issue #66] fix segfault when restoring full backup, rewrite help
1 parent ff6e11e commit 8a65fc8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ restore_data_file_internal(FILE *in, FILE *out, pgFile *file, uint32 backup_vers
11351135
page_lsn = PageXLogRecPtrGet(phdr->pd_lsn);
11361136

11371137
/*
1138-
* The heart of incremental restore
1138+
* The heart of incremental restore in 'checksum' mode
11391139
* If page in backup has the same checksum and lsn as
11401140
* page in backup, then page can be skipped.
11411141
*/

src/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ help_restore(void)
433433
printf(_(" relocate the external directory from OLDDIR to NEWDIR\n"));
434434
printf(_(" --skip-external-dirs do not restore all external directories\n"));
435435
printf(_(" -I, --incremental-mode=none|checksum|lsn\n"));
436-
printf(_(" reuse already existing unchanged valid pages in PGDATA\n"));
436+
printf(_(" reuse valid pages available in PGDATA if they have not changed\n"));
437437
printf(_(" (default: none)\n"));
438438

439439
printf(_("\n Partial restore options:\n"));

src/restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
712712
*/
713713
if (use_bitmap && parray_num(parent_chain) == 1)
714714
{
715-
if (params->incremental_mode == INCR_NONE)
715+
if (params->incremental_mode == INCR_LSN)
716716
use_bitmap = true;
717717
else
718718
use_bitmap = false;

0 commit comments

Comments
 (0)