Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 17450cb

Browse files
committed
Remove bogus while-loop.
Commit abf5c5c 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.
1 parent 9b4bd35 commit 17450cb

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9906,9 +9906,9 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
99069906
* process.
99079907
*/
99089908
HandleStartupProcInterrupts();
9909-
} while (StandbyMode);
9909+
}
99109910

9911-
return false;
9911+
return false; /* not reached */
99129912
}
99139913

99149914
/*

0 commit comments

Comments
 (0)