File tree 1 file changed +4
-5
lines changed
src/backend/access/transam 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.64 2001/04/05 09:34:32 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.65 2001/04/05 16:55:21 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -2467,6 +2467,7 @@ StartupXLOG(void)
2467
2467
Insert -> currpage -> xlp_sui = ThisStartUpID ;
2468
2468
else
2469
2469
Insert -> currpage -> xlp_sui = ThisStartUpID + 1 ;
2470
+ /* rest of buffer was zeroed in XLOGShmemInit */
2470
2471
}
2471
2472
else
2472
2473
{
@@ -2475,10 +2476,8 @@ StartupXLOG(void)
2475
2476
((EndOfLog .xrecoff - 1 ) / BLCKSZ + 1 ) * BLCKSZ ;
2476
2477
/*
2477
2478
* Tricky point here: readBuf contains the *last* block that the
2478
- * LastRec record spans, not the one it starts in, which is what we
2479
- * want.
2480
- *
2481
- * XXX - why would we want block LastRec starts in?
2479
+ * LastRec record spans, not the one it starts in. The last block
2480
+ * is indeed the one we want to use.
2482
2481
*/
2483
2482
Assert (readOff == (XLogCtl -> xlblocks [0 ].xrecoff - BLCKSZ ) % XLogSegSize );
2484
2483
memcpy ((char * ) Insert -> currpage , readBuf , BLCKSZ );
You can’t perform that action at this time.
0 commit comments