[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani msurtani at jboss.com
Tue Jan 30 16:34:26 EST 2007


  User: msurtani
  Date: 07/01/30 16:34:26

  Modified:    src/org/jboss/cache/interceptors 
                        PessimisticLockInterceptor.java
  Log:
  JBCACHE-955
  
  Revision  Changes    Path
  1.46      +3 -3      JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PessimisticLockInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -b -r1.45 -r1.46
  --- PessimisticLockInterceptor.java	29 Jan 2007 22:42:18 -0000	1.45
  +++ PessimisticLockInterceptor.java	30 Jan 2007 21:34:26 -0000	1.46
  @@ -36,7 +36,7 @@
    * current method and unlock when the method returns.
    *
    * @author Bela Ban
  - * @version $Id: PessimisticLockInterceptor.java,v 1.45 2007/01/29 22:42:18 bstansberry Exp $
  + * @version $Id: PessimisticLockInterceptor.java,v 1.46 2007/01/30 21:34:26 msurtani Exp $
    */
   public class PessimisticLockInterceptor extends Interceptor
   {
  @@ -58,7 +58,7 @@
         tx_table = cache.getTransactionTable();
         lock_table = cache.getLockTable();
         lock_acquisition_timeout = cache.getConfiguration().getLockAcquisitionTimeout();
  -      writeLockOnChildInsertRemove = cache.getConfiguration().getLockParentForChildInsertRemove();
  +      writeLockOnChildInsertRemove = cache.getConfiguration().isLockParentForChildInsertRemove();
      }
   
   
  @@ -366,7 +366,7 @@
         // write lock forced!!
         if (cache.getInvocationContext().getOptionOverrides().isForceWriteLock()) return true;
   
  -      if (writeLockOnChildInsertRemove)
  +      if (cache.getConfiguration().isLockParentForChildInsertRemove())
         {
            if (isRemoveOperation && currentNodeIndex == treeNodeSize - 2)
            {
  
  
  



More information about the jboss-cvs-commits mailing list