From 3e91228d28d2e7430676c89632150de7a297e4c4 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 13 Dec 2013 05:31:21 +0000 Subject: [PATCH] try creating the file before the lock git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550648 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/common/filelock/DefaultFileLockManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5