neo4j/neo4j — pull request #2460 by johan-neo (2014-05-26 12:32:42+00:00)
Title: Fixed bug that caused RWLock not to free up entries in txLockElementMap.

The mark flag is used to guard against creating multiple RWLocks for the same resource and has nothing to do with TxLockElement entries.

TxLockElement creation and removal is still safe since it is synchronized on the RWLock.