|Cleaning up locks on application startup [message #1235512]
||Fri, 24 January 2014 14:55
| Laurent Petit
Registered: December 2010
I have a server side application whose storage is backed up by JGit.|
If the application crashes, or is killed, it is possible (it already happened in practice) that some lock files remain on disk, e.g. .git/refs/heads/master.lock
My question is, are there administration methods / ways, via JGit API, to cleanup this kind of false positive when the application starts up ?
I can consider just walking the .git repository and remove all *.lock files found there, but maybe it's just one of many problems that could occur when the application is killed while it was busy with jgit, and this is already handled by some jgit code ?
Thanks in advance,
Powered by FUDForum
. Page generated in 0.03649 seconds