Silence warning about unused variable, when building without assertions.

This commit is contained in:
Heikki Linnakangas 2012-03-08 11:10:02 +02:00
parent 66a7e6bae9
commit d93f209f48

View File

@ -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];