mirror of
https://github.com/postgres/postgres.git
synced 2026-06-03 14:00:01 -04:00
Clarify locking for PageGetLSN() in XLogCheckBuffer()
This commit is contained in:
parent
1c563a2ae1
commit
7a764990d8
1 changed files with 2 additions and 1 deletions
|
|
@ -1212,7 +1212,8 @@ XLogCheckBuffer(XLogRecData *rdata, bool doPageWrites,
|
|||
/*
|
||||
* 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
|
||||
* 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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue