The removeLock method attempts to perform two statements: 1) delete from LOCKS where LOCK_ID = URI.URI_ID and URI.URI_STRING=? 2) delete from URI where URI_ID = LOCKS.LOCK_ID and URI_STRING=? The second statement never deletes a row since the row for containing the LOCK_ID was deleted in the first statement.
Created attachment 12664 [details] Diff for PostgresRDBMSAdapter.java
Patch applied in CVS Head and 2.1 release branch