svn commit: r883224 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r883224 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java

doogie-3
Author: doogie
Date: Mon Nov 23 03:02:27 2009
New Revision: 883224

URL: http://svn.apache.org/viewvc?rev=883224&view=rev
Log:
Move getCacheName out of the synchronized block.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java?rev=883224&r1=883223&r2=883224&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/AbstractCache.java Mon Nov 23 03:02:27 2009
@@ -75,8 +75,8 @@
     }
 
     protected UtilCache<K, V> getOrCreateCache(String entityName) {
+        String name = getCacheName(entityName);
         synchronized (UtilCache.utilCacheTable) {
-            String name = getCacheName(entityName);
             UtilCache<K, V> cache = UtilCache.findCache(name);
             if (cache == null) {
                 cache = UtilCache.createUtilCache(name, 0, 0, 0, true, false, getCacheNames(entityName));