Commit d93f209f authored by Heikki Linnakangas's avatar Heikki Linnakangas

Silence warning about unused variable, when building without assertions.

parent 66a7e6ba
...@@ -1117,7 +1117,6 @@ begin:; ...@@ -1117,7 +1117,6 @@ begin:;
*/ */
if (isLogSwitch) if (isLogSwitch)
{ {
XLogCtlWrite *Write = &XLogCtl->Write;
XLogwrtRqst FlushRqst; XLogwrtRqst FlushRqst;
XLogRecPtr OldSegEnd; XLogRecPtr OldSegEnd;
...@@ -1140,7 +1139,7 @@ begin:; ...@@ -1140,7 +1139,7 @@ begin:;
/* There should be no unwritten data */ /* There should be no unwritten data */
curridx = Insert->curridx; curridx = Insert->curridx;
Assert(curridx == Write->curridx); Assert(curridx == XLogCtl->Write.curridx);
/* Compute end address of old segment */ /* Compute end address of old segment */
OldSegEnd = XLogCtl->xlblocks[curridx]; OldSegEnd = XLogCtl->xlblocks[curridx];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment