Skip to content

Commit 5698515

Browse files
committed
Did not forget some page in full backup. But it is not solution for
ptrack backup. We have big issue.
1 parent 3668240 commit 5698515

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backup.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
110110
*/
111111
current.tli = get_current_timeline(false);
112112

113+
if (current.backup_mode != BACKUP_MODE_DIFF_PTRACK)
114+
pg_ptrack_clear();
115+
113116
/*
114117
* In differential backup mode, check if there is an already-validated
115118
* full backup on current timeline.
@@ -314,7 +317,8 @@ do_backup_database(parray *backup_list, pgBackupOption bkupopt)
314317
}
315318

316319
/* Clear ptrack files after backup */
317-
pg_ptrack_clear();
320+
if (current.backup_mode == BACKUP_MODE_DIFF_PTRACK)
321+
pg_ptrack_clear();
318322
/* Notify end of backup */
319323
pg_stop_backup(&current);
320324

0 commit comments

Comments
 (0)