Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d93f209

Browse files
committed
Silence warning about unused variable, when building without assertions.
1 parent 66a7e6b commit d93f209

File tree

1 file changed

+1
-2
lines changed
  • src/backend/access/transam

1 file changed

+1
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,6 @@ begin:;
11171117
*/
11181118
if (isLogSwitch)
11191119
{
1120-
XLogCtlWrite *Write = &XLogCtl->Write;
11211120
XLogwrtRqst FlushRqst;
11221121
XLogRecPtr OldSegEnd;
11231122

@@ -1140,7 +1139,7 @@ begin:;
11401139

11411140
/* There should be no unwritten data */
11421141
curridx = Insert->curridx;
1143-
Assert(curridx == Write->curridx);
1142+
Assert(curridx == XLogCtl->Write.curridx);
11441143

11451144
/* Compute end address of old segment */
11461145
OldSegEnd = XLogCtl->xlblocks[curridx];

0 commit comments

Comments
 (0)