From 777e8c0015743224cc46f3ce39243b05c6d882ef Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 18 Mar 2011 08:09:09 -0400 Subject: 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. --- src/backend/access/transam/xlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/access/transam/xlog.c') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 15af6693f5d..45ba0013c8a 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 -- cgit v1.2.3