aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-12-03 12:20:31 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2012-12-03 12:20:31 +0000
commit7a764990d8c07c5f8f6c7ff3e8605d482b6778e0 (patch)
treec706647c4cef9ec091c3e9bdaa74cd5fd5e40b24 /src/backend/access/transam/xlog.c
parent1c563a2ae1c800c93fe5f41d0427e36bef874ba7 (diff)
downloadpostgresql-7a764990d8c07c5f8f6c7ff3e8605d482b6778e0.tar.gz
postgresql-7a764990d8c07c5f8f6c7ff3e8605d482b6778e0.zip
Clarify locking for PageGetLSN() in XLogCheckBuffer()
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index c8ac97fbf7f..411807006ac 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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);