avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: avalon-excalibur/store/src/java/org/apache/excalibur/store/impl AbstractReadWriteStore.java
Date Thu, 11 Mar 2004 21:38:47 GMT
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


Mime
View raw message