diff options
author | Olivier Lamy <olamy@apache.org> | 2013-12-13 05:31:21 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-12-13 05:31:21 +0000 |
commit | 3e91228d28d2e7430676c89632150de7a297e4c4 (patch) | |
tree | ad401b4d2003ea137c72a8d833c3c248f628ebcf /archiva-modules/archiva-base/archiva-filelock | |
parent | a597458ba92ebbe4dedcecb167181d3b37b05b5d (diff) | |
download | archiva-3e91228d28d2e7430676c89632150de7a297e4c4.tar.gz archiva-3e91228d28d2e7430676c89632150de7a297e4c4.zip |
try creating the file before the lock
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-filelock')
-rw-r--r-- | archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java index feadc96f4..7d1011998 100644 --- a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java +++ b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java @@ -94,6 +94,7 @@ public class DefaultFileLockManager try { + createNewFileQuietly( file ); lock.openLock( false, timeout > 0 ); acquired = true; } @@ -170,7 +171,7 @@ public class DefaultFileLockManager try { - file.createNewFile(); + createNewFileQuietly( file ); lock.openLock( true, timeout > 0 ); acquired = true; } |