lwlock: Remove ForEachLWLockHeldByMe
Andres Freund <andres@anarazel.de>
lwlock: Remove ForEachLWLockHeldByMe As of commit fcb9c977aa5, ForEachLWLockHeldByMe(), introduced in f4ece891fc2f, is not used anymore, as content locks are now implemented in bufmgr.c. It doesn't seem that likely that a new user of the functionality will appear all that soon, making removal of the function seem like the most sensible path. It can easily be added back if necessary. Discussion: https://postgr.es/m/lneuyxqxamqoayd2ntau3lqjblzdckw6tjgeu4574ezwh4tzlg%40noioxkquezdw
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lwlock.c | modified | +0 −15 |
| src/include/storage/lwlock.h | modified | +0 −2 |
Discussion
- Buffer locking is special (hints, checksums, AIO writes) 120 messages · 2025-08-22 → 2026-04-03