When LWLOCK_STATS is defined, count spindelays.
Robert Haas <rhaas@postgresql.org>
When LWLOCK_STATS is defined, count spindelays. When LWLOCK_STATS is *not* defined, the only change is that SpinLockAcquire now returns the number of delays. Patch by me, review by Jeff Janes.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/lwlock.c | modified | +9 −3 |
| src/backend/storage/lmgr/s_lock.c | modified | +2 −1 |
| src/include/storage/s_lock.h | modified | +4 −6 |