Skip to content

Commit 36f21a9

Browse files
committed
[Issue #369] add elog message about failure of obtaining history file via replication protocol
1 parent b1442f4 commit 36f21a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backup.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,17 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync, bool
161161
if (prev_backup == NULL)
162162
{
163163
/* try to setup multi-timeline backup chain */
164-
elog(WARNING, "Valid backup on current timeline %u is not found, "
164+
elog(WARNING, "Valid full backup on current timeline %u is not found, "
165165
"trying to look up on previous timelines",
166166
current.tli);
167167

168168
tli_list = get_history_streaming(&instance_config.conn_opt, current.tli, backup_list);
169169
if (!tli_list)
170+
{
171+
elog(WARNING, "Failed to obtain current timeline history file via replication protocol");
170172
/* fallback to using archive */
171173
tli_list = catalog_get_timelines(&instance_config);
174+
}
172175

173176
if (parray_num(tli_list) == 0)
174177
elog(WARNING, "Cannot find valid backup on previous timelines, "

0 commit comments

Comments
 (0)