A typo in locks_server:do_remove_agent() would change a pending read lock entry to a write lock entry (possibly containing multiple agents). This bug also shadowed the fact that lock upgrade wasn't performed at agent removal (since a read lock would be transformed to a write lock anyway, upgrade appeared to work.)
Addresses Issue #15
A typo in locks_server:do_remove_agent() would change a pending read lock entry to a write lock entry (possibly containing multiple agents). This bug also shadowed the fact that lock upgrade wasn't performed at agent removal (since a read lock would be transformed to a write lock anyway, upgrade appeared to work.)
Also improved the 'mismatch' messages somewhat.