]> source.dussan.org Git - jgit.git/commit
When renaming the lock file succeeds the lock isn't held anymore 98/11498/1
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 26 Mar 2013 20:20:19 +0000 (21:20 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 26 Mar 2013 20:26:07 +0000 (21:26 +0100)
commitd059f85c0bb2f9de9977cf4e0f1f72647aa4b4b2
tree3fe74ec53415c409bd6b8b5aa744334afc74db63
parent7f1c2ec1eb81fa1dfca7bfe55bdfb9e8559dcaa2
When renaming the lock file succeeds the lock isn't held anymore

This wrong book-keeping caused IOExceptions to be thrown because
LockFile.unlock() erroneously tried to delete the non-existing lock
file. These IOExeptions were hidden since they were silently caught.

Change-Id: If42b6192d92c5a2d8f2bf904b16567ef08c32e89
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java