You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by un...@apache.org on 2004/03/11 22:38:47 UTC

cvs commit: avalon-excalibur/store/src/java/org/apache/excalibur/store/impl AbstractReadWriteStore.java

unico       2004/03/11 13:38:47

  Modified:    store/src/java/org/apache/excalibur/store/impl
                        AbstractReadWriteStore.java
  Log:
  read lock is sufficient for get
  
  Revision  Changes    Path
  1.6       +2 -2      avalon-excalibur/store/src/java/org/apache/excalibur/store/impl/AbstractReadWriteStore.java
  
  Index: AbstractReadWriteStore.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/store/src/java/org/apache/excalibur/store/impl/AbstractReadWriteStore.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractReadWriteStore.java	28 Feb 2004 11:47:31 -0000	1.5
  +++ AbstractReadWriteStore.java	11 Mar 2004 21:38:47 -0000	1.6
  @@ -61,7 +61,7 @@
       public Object get(Object key) 
       {
           Object value = null;
  -        Sync sync = this.lock.writeLock();
  +        Sync sync = this.lock.readLock();
           try
           {
               sync.acquire();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org