aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-13 15:42:31 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-13 15:42:31 -0500
commit9b92e76f7b6dcdc2de6fae53a1c069297ba454fc (patch)
tree2462a6248119529c29a97d5be8dbbfa024d1d943 /src
parent13a6fa3634a70f58e043c78984cd2fb626abcc16 (diff)
downloadpostgresql-9b92e76f7b6dcdc2de6fae53a1c069297ba454fc.tar.gz
postgresql-9b92e76f7b6dcdc2de6fae53a1c069297ba454fc.zip
Make GetLockStatusData's header comment resemble reality.
The API spec for this function was changed completely (and for the better) by commit 3cba8999b343648c4c528432ab3d51400194e93b, but it didn't bother with anything as mundane as updating the comments.
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/lmgr/lock.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index e3e9599fc98..fef59a280a6 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -3371,10 +3371,11 @@ LockShmemSize(void)
* GetLockStatusData - Return a summary of the lock manager's internal
* status, for use in a user-level reporting function.
*
- * The return data consists of an array of PROCLOCK objects, with the
- * associated PGPROC and LOCK objects for each. Note that multiple
- * copies of the same PGPROC and/or LOCK objects are likely to appear.
- * It is the caller's responsibility to match up duplicates if wanted.
+ * The return data consists of an array of LockInstanceData objects,
+ * which are a lightly abstracted version of the PROCLOCK data structures,
+ * i.e. there is one entry for each unique lock and interested PGPROC.
+ * It is the caller's responsibility to match up related items (such as
+ * references to the same lockable object or PGPROC) if wanted.
*
* The design goal is to hold the LWLocks for as short a time as possible;
* thus, this function simply makes a copy of the necessary data and releases