mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-01 09:51:43 +02:00
Fix wrong message for finished segment, add finished streaming message
This commit is contained in:
parent
85adfcb9aa
commit
834d64b30c
@ -2560,7 +2560,7 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
|
||||
|
||||
/* we assume that we get called once at the end of each segment */
|
||||
if (segment_finished)
|
||||
elog(LOG, _("finished streaming WAL at %X/%X (timeline %u)"),
|
||||
elog(VERBOSE, _("finished segment at %X/%X (timeline %u)"),
|
||||
(uint32) (xlogpos >> 32), (uint32) xlogpos, timeline);
|
||||
|
||||
/*
|
||||
@ -2578,7 +2578,11 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
|
||||
if (!XLogRecPtrIsInvalid(stop_backup_lsn))
|
||||
{
|
||||
if (xlogpos > stop_backup_lsn)
|
||||
{
|
||||
elog(LOG, _("finished streaming WAL at %X/%X (timeline %u)"),
|
||||
(uint32) (xlogpos >> 32), (uint32) xlogpos, timeline);
|
||||
return true;
|
||||
}
|
||||
|
||||
/* pg_stop_backup() was executed, wait for the completion of stream */
|
||||
if (stream_stop_timeout == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user