Use LW_SHARED in dsa.c where possible.
Nathan Bossart <nathan@postgresql.org>
Use LW_SHARED in dsa.c where possible. Both dsa_get_total_size() and dsa_get_total_size_from_handle() take an exclusive lock just to read a variable. This commit reduces the lock level to LW_SHARED in those functions. Reviewed-by: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/aS8fMzWs9e8iHxk2%40nathan
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/dsa.c | modified | +2 −2 |
Discussion
- use LW_SHARED in dsa_get_total_size() 3 messages · 2025-12-02