]> granicus.if.org Git - postgresql/commit
When LWLOCK_STATS is defined, count spindelays.
authorRobert Haas <rhaas@postgresql.org>
Tue, 26 Jun 2012 20:02:55 +0000 (16:02 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 26 Jun 2012 20:06:07 +0000 (16:06 -0400)
commitb79ab00144e64217d418fde884bca8ea58fbd4a4
tree08716714a8f4f7f1dff7fce69463118759a80f3f
parent757773602c424b1e51c2d9cad8a59398ba7f7b2c
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.
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/s_lock.c
src/include/storage/s_lock.h