openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dazey...@apache.org
Subject svn commit: r1838027 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
Date Tue, 14 Aug 2018 15:09:27 GMT
Author: dazeydev
Date: Tue Aug 14 15:09:27 2018
New Revision: 1838027

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

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java?rev=1838027&r1=1838026&r2=1838027&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java Tue Aug
14 15:09:27 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