Skip to content

Commit 7a76499

Browse files
Clarify locking for PageGetLSN() in XLogCheckBuffer()
1 parent 1c563a2 commit 7a76499

File tree

1 file changed

+2
-1
lines changed
  • src/backend/access/transam

1 file changed

+2
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,8 @@ XLogCheckBuffer(XLogRecData *rdata, bool doPageWrites,
12121212
/*
12131213
* XXX We assume page LSN is first data on *every* page that can be passed
12141214
* to XLogInsert, whether it otherwise has the standard page layout or
1215-
* not.
1215+
* not. We don't need the buffer header lock for PageGetLSN because we
1216+
* have exclusive lock on the page and/or the relation.
12161217
*/
12171218
*lsn = PageGetLSN(page);
12181219

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy