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

Manik Surtani manik at jboss.org
Thu Jul 12 07:48:42 EDT 2007


  User: msurtani
  Date: 07/07/12 07:48:42

  Modified:    src/org/jboss/cache  UnversionedNode.java
  Log:
  Minor optimisation on initialising locks
  
  Revision  Changes    Path
  1.35      +2 -2      JBossCache/src/org/jboss/cache/UnversionedNode.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UnversionedNode.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/UnversionedNode.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- UnversionedNode.java	9 Jul 2007 13:14:26 -0000	1.34
  +++ UnversionedNode.java	12 Jul 2007 11:48:42 -0000	1.35
  @@ -51,7 +51,7 @@
      /**
       * True if data has been loaded from the cache loader.
       */
  -   private boolean dataLoaded = false;
  +   private boolean dataLoaded = true;
   
      /**
       * Lock manager that manages locks to be acquired when accessing the node inside a transaction. Lazy set just in case
  @@ -185,7 +185,7 @@
   
      public IdentityLock getLock()
      {
  -      initLock();
  +      if (lock_ == null) initLock();
         return lock_;
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list