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;