openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dazey...@apache.org
Subject svn commit: r1838026 - /openjpa/branches/2.4.x/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java
Date Tue, 14 Aug 2018 15:09:06 GMT
Author: dazeydev
Date: Tue Aug 14 15:09:05 2018
New Revision: 1838026

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

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

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