Add debug check function LWLockHeldByMeInMode()
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 5 Sep 2016 09:38:08 +0000 (10:38 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 5 Sep 2016 09:38:08 +0000 (10:38 +0100)
commit016abf1fb8333de82a259af0cc7572a4b868023b
tree9b50dfce2a113b0563ddce042d1fa6582e7c4a56
parentec03f4121cec6cf885bf40d9dfb53b8368251e99
Add debug check function LWLockHeldByMeInMode()

Tests whether my process holds a lock in given mode.
Add initial usage in MarkBufferDirty().

Thomas Munro
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/lwlock.c
src/include/storage/lwlock.h