From: Robert Haas Date: Fri, 18 Mar 2011 12:09:09 +0000 (-0400) Subject: Remove bogus semicolons in recoveryPausesHere. X-Git-Tag: REL9_1_ALPHA5~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=777e8c0015743224cc46f3ce39243b05c6d882ef;p=postgresql Remove bogus semicolons in recoveryPausesHere. Without this, the startup process goes into a tight loop, consuming 100% of one CPU and failing to respond to interrupts. --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 15af6693f5..45ba0013c8 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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