Add debug check function LWLockHeldByMeInMode()
Simon Riggs <simon@2ndQuadrant.com>
Add debug check function LWLockHeldByMeInMode() Tests whether my process holds a lock in given mode. Add initial usage in MarkBufferDirty(). Thomas Munro
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/bufmgr.c | modified | +2 −2 |
| src/backend/storage/lmgr/lwlock.c | modified | +20 −3 |
| src/include/storage/lwlock.h | modified | +1 −0 |