git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a7be2a6) | patch
Cross-check lists of predefined LWLocks.
Tue, 9 Jan 2024 17:05:19 +0000 (11:05 -0600)
Tue, 9 Jan 2024 17:05:19 +0000 (11:05 -0600)
commit 5b1b9bce84497ec71dbd6d5a969e8fc5aa22b4ef
Cross-check lists of predefined LWLocks.

Both lwlocknames.txt and wait_event_names.txt contain a list of all
the predefined LWLocks, i.e., those with predefined positions
within MainLWLockArray. It is easy to miss one or the other,
especially since the list in wait_event_names.txt omits the "Lock"
suffix from all the LWLock wait events. This commit adds a cross-
check of these lists to the script that generates lwlocknames.h.
If the lists do not match exactly, building will fail.

Suggested-by: Robert Haas
Reviewed-by: Robert Haas, Michael Paquier, Bertrand Drouvot
Discussion: https://postgr.es/m/20240102173120.GA1061678%40nathanxps13
src/backend/Makefile diff | blob | blame | history
src/backend/storage/lmgr/Makefile diff | blob | blame | history
src/backend/storage/lmgr/generate-lwlocknames.pl diff | blob | blame | history
src/backend/utils/activity/wait_event_names.txt diff | blob | blame | history
src/include/storage/meson.build diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /