Commit 7a764990 authored by Simon Riggs's avatar Simon Riggs

Clarify locking for PageGetLSN() in XLogCheckBuffer()

parent 1c563a2a
...@@ -1212,7 +1212,8 @@ XLogCheckBuffer(XLogRecData *rdata, bool doPageWrites, ...@@ -1212,7 +1212,8 @@ XLogCheckBuffer(XLogRecData *rdata, bool doPageWrites,
/* /*
* XXX We assume page LSN is first data on *every* page that can be passed * XXX We assume page LSN is first data on *every* page that can be passed
* to XLogInsert, whether it otherwise has the standard page layout or * to XLogInsert, whether it otherwise has the standard page layout or
* not. * not. We don't need the buffer header lock for PageGetLSN because we
* have exclusive lock on the page and/or the relation.
*/ */
*lsn = PageGetLSN(page); *lsn = PageGetLSN(page);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment