Skip to content

Commit d8a42b1

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 192d8e0 commit d8a42b1

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -11333,9 +11333,9 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
1133311333
* process.
1133411334
*/
1133511335
HandleStartupProcInterrupts();
11336-
} while (StandbyMode);
11336+
}
1133711337

11338-
return false;
11338+
return false; /* not reached */
1133911339
}
1134011340

1134111341
/*

0 commit comments

Comments
 (0)