Skip to content

Commit 5aded20

Browse files
author
Artur Zakirov
committed
More understandable message during an error of ptrack backuping
1 parent faa97de commit 5aded20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,13 @@ do_backup_database(parray *backup_list, bool smooth_checkpoint)
291291
{
292292
XLogRecPtr ptrack_lsn = get_last_ptrack_lsn();
293293
if (ptrack_lsn > prev_backup->stop_lsn)
294+
{
294295
elog(ERROR, "Wrong ptrack lsn:%lx prev:%lx current:%lx",
295296
ptrack_lsn,
296297
prev_backup->start_lsn,
297298
current.start_lsn);
299+
elog(ERROR, "Create new full backup before an incremental one.");
300+
}
298301
parray_qsort(backup_files_list, pgFileComparePathDesc);
299302
make_pagemap_from_ptrack(backup_files_list);
300303
}

0 commit comments

Comments
 (0)