Use macros instead of hardcoded offsets for LWLock initialization
Michael Paquier <michael@paquier.xyz>
Use macros instead of hardcoded offsets for LWLock initialization This makes the code slightly easier to follow, as the initialization relies on an offset that overlapped with an equivalent set of macros defined, which are used in other places already. Author: Japin Li Discussion: https://postgr.es/m/MEYP282MB1669FB410006758402F2C3A2B6E00@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lwlock.c | modified | +3 −4 |
Discussion
- Use macros for calculating LWLock offset 4 messages · 2020-11-19 → 2020-11-24