diff options
| author | Tom Lane | 2020-05-15 23:55:56 +0000 |
|---|---|---|
| committer | Tom Lane | 2020-05-15 23:55:56 +0000 |
| commit | 14a91010912632cae322b06fce0425faedcf7353 (patch) | |
| tree | 49bbf3e514ac1a3ed4c66a15f415fd6b8290d1af /src/include | |
| parent | 8048404939bb0fcef80b0ab57910b6e10d4289a3 (diff) | |
Drop the redundant "Lock" suffix from LWLock wait event names.
This was mostly confusing, especially since some wait events in
this class had the suffix and some did not.
While at it, stop exposing MainLWLockNames[] as a globally visible
name; any code using that directly is almost certainly wrong, as
its name has been misleading for some time.
(GetLWLockIdentifier() is what to use instead.)
Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/lwlock.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h index d8e1b5c493e..c04ae971485 100644 --- a/src/include/storage/lwlock.h +++ b/src/include/storage/lwlock.h @@ -88,7 +88,6 @@ typedef union LWLockMinimallyPadded } LWLockMinimallyPadded; extern PGDLLIMPORT LWLockPadded *MainLWLockArray; -extern const char *const MainLWLockNames[]; /* struct for storing named tranche information */ typedef struct NamedLWLockTranche |
