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

Commit f10596c

Browse files
committed
Fix comment that Vadim found confusing.
1 parent 3092869 commit f10596c

File tree

1 file changed

+4
-5
lines changed
  • src/backend/access/transam

1 file changed

+4
-5
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2467,6 +2467,7 @@ StartupXLOG(void)
24672467
Insert->currpage->xlp_sui = ThisStartUpID;
24682468
else
24692469
Insert->currpage->xlp_sui = ThisStartUpID + 1;
2470+
/* rest of buffer was zeroed in XLOGShmemInit */
24702471
}
24712472
else
24722473
{
@@ -2475,10 +2476,8 @@ StartupXLOG(void)
24752476
((EndOfLog.xrecoff - 1) / BLCKSZ + 1) * BLCKSZ;
24762477
/*
24772478
* 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.
24822481
*/
24832482
Assert(readOff == (XLogCtl->xlblocks[0].xrecoff - BLCKSZ) % XLogSegSize);
24842483
memcpy((char *) Insert->currpage, readBuf, BLCKSZ);

0 commit comments

Comments
 (0)