mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
[Issue #66] fix segfault when restoring full backup, rewrite help
This commit is contained in:
+1
-1
@@ -1135,7 +1135,7 @@ restore_data_file_internal(FILE *in, FILE *out, pgFile *file, uint32 backup_vers
|
||||
page_lsn = PageXLogRecPtrGet(phdr->pd_lsn);
|
||||
|
||||
/*
|
||||
* The heart of incremental restore
|
||||
* The heart of incremental restore in 'checksum' mode
|
||||
* If page in backup has the same checksum and lsn as
|
||||
* page in backup, then page can be skipped.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -433,7 +433,7 @@ help_restore(void)
|
||||
printf(_(" relocate the external directory from OLDDIR to NEWDIR\n"));
|
||||
printf(_(" --skip-external-dirs do not restore all external directories\n"));
|
||||
printf(_(" -I, --incremental-mode=none|checksum|lsn\n"));
|
||||
printf(_(" reuse already existing unchanged valid pages in PGDATA\n"));
|
||||
printf(_(" reuse valid pages available in PGDATA if they have not changed\n"));
|
||||
printf(_(" (default: none)\n"));
|
||||
|
||||
printf(_("\n Partial restore options:\n"));
|
||||
|
||||
+1
-1
@@ -712,7 +712,7 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
|
||||
*/
|
||||
if (use_bitmap && parray_num(parent_chain) == 1)
|
||||
{
|
||||
if (params->incremental_mode == INCR_NONE)
|
||||
if (params->incremental_mode == INCR_LSN)
|
||||
use_bitmap = true;
|
||||
else
|
||||
use_bitmap = false;
|
||||
|
||||
Reference in New Issue
Block a user