mirror of https://github.com/apache/archiva.git
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:
parent
06cb9ea4f9
commit
e48c05fb6f
|
@ -37,7 +37,10 @@ import java.util.concurrent.ConcurrentMap;
|
||||||
public class DefaultFileLockManager
|
public class DefaultFileLockManager
|
||||||
implements FileLockManager
|
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;
|
private boolean skipLocking = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue