Add debug check function LWLockHeldByMeInMode()

Simon Riggs <simon@2ndQuadrant.com>

Commit: 016abf1fb8333de82a259af0cc7572a4b868023b
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2016-09-05T09:38:08Z
Releases: 10.0
Add debug check function LWLockHeldByMeInMode()

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

Thomas Munro

Files