openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dazey...@apache.org
Subject svn commit: r1838025 - /openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
Date Tue, 14 Aug 2018 15:01:38 GMT
Author: dazeydev
Date: Tue Aug 14 15:01:38 2018
New Revision: 1838025

URL: http://svn.apache.org/viewvc?rev=1838025&view=rev
Log:
OPENJPA-2646: Performance Regression fix

Modified:
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java?rev=1838025&r1=1838024&r2=1838025&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
Tue Aug 14 15:01:38 2018
@@ -355,9 +355,9 @@ public class CacheMap
                 val = cacheMap.get(key);
                 if (val == null) {
                     val = pinnedMap.get(key);
-                } else {
-                    putcache = true;
                 }
+            } else {
+                putcache = true;
             }
             return val;
         } finally {



Mime
View raw message