Skip to content

Commit

Permalink
Raise fatal error on failed recovery (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
petuhovskiy authored Mar 31, 2022
1 parent 5c278ed commit 1dc6535
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/replication/walproposer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,10 +1257,14 @@ WalProposerRecovery(int donor, TimeLineID timeline, XLogRecPtr startpos, XLogRec
break;
}
}
ereport(DEBUG1,
ereport(LOG,
(errmsg("end of replication stream at %X/%X: %m",
LSN_FORMAT_ARGS(rec_end_lsn))));
walrcv_disconnect(wrconn);

/* failed to receive all WAL till endpos */
if (rec_end_lsn < endpos)
return false;
}
else
{
Expand Down

0 comments on commit 1dc6535

Please sign in to comment.