mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Make GetLockStatusData's header comment resemble reality.
The API spec for this function was changed completely (and for the better)
by commit 3cba8999b3
, but it didn't bother
with anything as mundane as updating the comments.
This commit is contained in:
@ -3371,10 +3371,11 @@ LockShmemSize(void)
|
|||||||
* GetLockStatusData - Return a summary of the lock manager's internal
|
* GetLockStatusData - Return a summary of the lock manager's internal
|
||||||
* status, for use in a user-level reporting function.
|
* status, for use in a user-level reporting function.
|
||||||
*
|
*
|
||||||
* The return data consists of an array of PROCLOCK objects, with the
|
* The return data consists of an array of LockInstanceData objects,
|
||||||
* associated PGPROC and LOCK objects for each. Note that multiple
|
* which are a lightly abstracted version of the PROCLOCK data structures,
|
||||||
* copies of the same PGPROC and/or LOCK objects are likely to appear.
|
* i.e. there is one entry for each unique lock and interested PGPROC.
|
||||||
* It is the caller's responsibility to match up duplicates if wanted.
|
* 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;
|
* 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
|
* thus, this function simply makes a copy of the necessary data and releases
|
||||||
|
Reference in New Issue
Block a user