diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-05 16:55:21 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-05 16:55:21 +0000 |
commit | f10596c3ecf1241132e8713aef2d169ca3c06b20 (patch) | |
tree | 9925c9863d06c883553f817c08682c0d7b0ecf5c /src | |
parent | 3092869233bedc8e7057c4aebf66d11ed4ca65ea (diff) | |
download | postgresql-f10596c3ecf1241132e8713aef2d169ca3c06b20.tar.gz postgresql-f10596c3ecf1241132e8713aef2d169ca3c06b20.zip |
Fix comment that Vadim found confusing.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlog.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 282841c5720..f6394b115d7 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.64 2001/04/05 09:34:32 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.65 2001/04/05 16:55:21 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2467,6 +2467,7 @@ StartupXLOG(void) Insert->currpage->xlp_sui = ThisStartUpID; else Insert->currpage->xlp_sui = ThisStartUpID + 1; + /* rest of buffer was zeroed in XLOGShmemInit */ } else { @@ -2475,10 +2476,8 @@ StartupXLOG(void) ((EndOfLog.xrecoff - 1) / BLCKSZ + 1) * BLCKSZ; /* * Tricky point here: readBuf contains the *last* block that the - * LastRec record spans, not the one it starts in, which is what we - * want. - * - * XXX - why would we want block LastRec starts in? + * LastRec record spans, not the one it starts in. The last block + * is indeed the one we want to use. */ Assert(readOff == (XLogCtl->xlblocks[0].xrecoff - BLCKSZ) % XLogSegSize); memcpy((char *) Insert->currpage, readBuf, BLCKSZ); |