]> granicus.if.org Git - postgresql/commitdiff
Remove bogus semicolons in recoveryPausesHere.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2011 12:09:09 +0000 (08:09 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2011 12:09:09 +0000 (08:09 -0400)
Without this, the startup process goes into a tight loop, consuming
100% of one CPU and failing to respond to interrupts.

src/backend/access/transam/xlog.c

index 15af6693f5d7283fa84be618f341c52910842bc7..45ba0013c8a2e21ba5ed645c37a88f022be3ab74 100644 (file)
@@ -5687,11 +5687,11 @@ recoveryStopsHere(XLogRecord *record, bool *includeThis)
 static void
 recoveryPausesHere(void)
 {
-       while (RecoveryIsPaused());
+       while (RecoveryIsPaused())
        {
                pg_usleep(1000000L);            /* 1000 ms */
                HandleStartupProcInterrupts();
-       };
+       }
 }
 
 static bool