From d8a42b150fa83de0a058843a4d9d61af3d98e333 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 28 Feb 2014 13:22:25 +0200 Subject: [PATCH] Remove bogus while-loop. Commit abf5c5c9a4f142b3343614746bb9e99a794f8e7b added a bogus while- statement after the for(;;)-loop. It went unnoticed in testing, because it was dead code. Report by KONDO Mitsumasa. Backpatch to 9.3. The commit that introduced this was also applied to 9.2, but not the bogus while-loop part, because the code in 9.2 looks quite different. --- src/backend/access/transam/xlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 483d5c3eb5..ad46eb0ceb 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -11333,9 +11333,9 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess, * process. */ HandleStartupProcInterrupts(); - } while (StandbyMode); + } - return false; + return false; /* not reached */ } /* -- 2.40.0