Skip to content

Commit be4528c

Browse files
committed
[Issue #326] add special handling for Timeline 1
1 parent 00ce713 commit be4528c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/restore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,9 +1782,9 @@ read_timeline_history(const char *arclog_path, TimeLineID targetTLI, bool strict
17821782
elog(ERROR, "Timeline IDs must be less than child timeline's ID.");
17831783

17841784
/* History file is empty or corrupted */
1785-
if (parray_num(result) == 0)
1785+
if (parray_num(result) == 0 && targetTLI != 1)
17861786
{
1787-
elog(WARNING, "History file is corrupted: \"%s\"", path);
1787+
elog(WARNING, "History file is corrupted or missing: \"%s\"", path);
17881788
pg_free(result);
17891789
return NULL;
17901790
}

0 commit comments

Comments
 (0)