]> granicus.if.org Git - postgresql/commitdiff
Check interrupts during hot standby waits
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 27 Jan 2017 12:13:20 +0000 (12:13 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 27 Jan 2017 12:13:20 +0000 (12:13 +0000)
src/backend/storage/ipc/standby.c

index 547f1a88fe26e0ba780b69d8c03f221f562d2a45..174e42a16b20a39b092704382f7476d7a0905c1b 100644 (file)
@@ -160,6 +160,8 @@ WaitExceedsMaxStandbyDelay(void)
 {
        TimestampTz ltime;
 
+       CHECK_FOR_INTERRUPTS();
+
        /* Are we past the limit time? */
        ltime = GetStandbyLimitTime();
        if (ltime && GetCurrentTimestamp() >= ltime)