Silence warning about unused variable, when building without assertions.
authorHeikki Linnakangas
Thu, 8 Mar 2012 09:10:02 +0000 (11:10 +0200)
committerHeikki Linnakangas
Thu, 8 Mar 2012 09:10:02 +0000 (11:10 +0200)
src/backend/access/transam/xlog.c

index 8bbca613f2674d220b5eda223c2ce49a7b3b0b95..18fc23286aa30fa2534b6d0fa56365a6f790195e 100644 (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];