mirror of https://github.com/apache/archiva.git
try creating the file before the lock
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550648 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a597458ba9
commit
3e91228d28
|
@ -94,6 +94,7 @@ public class DefaultFileLockManager
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
createNewFileQuietly( file );
|
||||||
lock.openLock( false, timeout > 0 );
|
lock.openLock( false, timeout > 0 );
|
||||||
acquired = true;
|
acquired = true;
|
||||||
}
|
}
|
||||||
|
@ -170,7 +171,7 @@ public class DefaultFileLockManager
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
file.createNewFile();
|
createNewFileQuietly( file );
|
||||||
lock.openLock( true, timeout > 0 );
|
lock.openLock( true, timeout > 0 );
|
||||||
acquired = true;
|
acquired = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue