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)
|
if (isLogSwitch)
|
||||||
{
|
{
|
||||||
XLogCtlWrite *Write = &XLogCtl->Write;
|
|
||||||
XLogwrtRqst FlushRqst;
|
XLogwrtRqst FlushRqst;
|
||||||
XLogRecPtr OldSegEnd;
|
XLogRecPtr OldSegEnd;
|
||||||
|
|
||||||
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user