Insert->currpage->xlp_sui = ThisStartUpID;
else
Insert->currpage->xlp_sui = ThisStartUpID + 1;
+ /* rest of buffer was zeroed in XLOGShmemInit */
}
else
{
((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);