projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66a7e6b
)
Silence warning about unused variable, when building without assertions.
author
Heikki Linnakangas
Thu, 8 Mar 2012 09:10:02 +0000
(11:10 +0200)
committer
Heikki Linnakangas
Thu, 8 Mar 2012 09:10:02 +0000
(11:10 +0200)
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 8bbca613f2674d220b5eda223c2ce49a7b3b0b95..18fc23286aa30fa2534b6d0fa56365a6f790195e 100644
(file)
--- 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];