diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-03-08 11:10:02 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2012-03-08 11:10:02 +0200 |
commit | d93f209f483f006534ae543667a1254b6fdec183 (patch) | |
tree | 10acd5dbc8320e44deedde8f5009735c84629249 | |
parent | 66a7e6bae98592d1d98d9ef589753f0e953c5828 (diff) | |
download | postgresql-d93f209f483f006534ae543667a1254b6fdec183.tar.gz postgresql-d93f209f483f006534ae543667a1254b6fdec183.zip |
Silence warning about unused variable, when building without assertions.
-rw-r--r-- | src/backend/access/transam/xlog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 8bbca613f26..18fc23286aa 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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]; |