1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-31 03:21:24 +03:00

Check interrupts during hot standby waits

This commit is contained in:
Simon Riggs 2017-01-27 12:18:07 +00:00
parent 1ad163ef01
commit 332068a212

View File

@ -160,6 +160,8 @@ WaitExceedsMaxStandbyDelay(void)
{ {
TimestampTz ltime; TimestampTz ltime;
CHECK_FOR_INTERRUPTS();
/* Are we past the limit time? */ /* Are we past the limit time? */
ltime = GetStandbyLimitTime(); ltime = GetStandbyLimitTime();
if (ltime && GetCurrentTimestamp() >= ltime) if (ltime && GetCurrentTimestamp() >= ltime)