mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Silence warning about unused variable, when building without assertions.
This commit is contained in:
parent
66a7e6bae9
commit
d93f209f48
@ -1117,7 +1117,6 @@ begin:;
|
||||
*/
|
||||
if (isLogSwitch)
|
||||
{
|
||||
XLogCtlWrite *Write = &XLogCtl->Write;
|
||||
XLogwrtRqst FlushRqst;
|
||||
XLogRecPtr OldSegEnd;
|
||||
|
||||
@ -1140,7 +1139,7 @@ begin:;
|
||||
|
||||
/* There should be no unwritten data */
|
||||
curridx = Insert->curridx;
|
||||
Assert(curridx == Write->curridx);
|
||||
Assert(curridx == XLogCtl->Write.curridx);
|
||||
|
||||
/* Compute end address of old segment */
|
||||
OldSegEnd = XLogCtl->xlblocks[curridx];
|
||||
|
Loading…
Reference in New Issue
Block a user