From e48c05fb6f04236bdb68103e9a0ae5c351d353c2 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 13 Dec 2013 04:46:45 +0000 Subject: [PATCH] add note on possible improvments git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550637 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/common/filelock/DefaultFileLockManager.java | 5 ++++- 1 file changed, 4 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 4adf69b4f..d70cb775e 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 @@ -37,7 +37,10 @@ import java.util.concurrent.ConcurrentMap; public class DefaultFileLockManager implements FileLockManager { - private static final ConcurrentMap lockFiles = new ConcurrentHashMap( 64 ); + // TODO currently we create lock for read and write!! + // the idea could be to store lock here with various clients read/write + // only read could be a more simple lock and acquire a write lock means waiting the end of all reading threads + //private static final ConcurrentMap lockFiles = new ConcurrentHashMap( 64 ); private boolean skipLocking = false; -- 2.39.5