add note on possible improvments

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-12-13 04:46:45 +00:00
parent 06cb9ea4f9
commit e48c05fb6f
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ import java.util.concurrent.ConcurrentMap;
public class DefaultFileLockManager
implements FileLockManager
{
private static final ConcurrentMap<File, Lock> lockFiles = new ConcurrentHashMap<File, Lock>( 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<File, Lock> lockFiles = new ConcurrentHashMap<File, Lock>( 64 );
private boolean skipLocking = false;