You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/07/13 06:28:12 UTC

[1/2] camel git commit: CAMEL-11540: Fixed issue with turning off ProducerCache

Repository: camel
Updated Branches:
  refs/heads/master 177f54cfc -> a7542736a


CAMEL-11540: Fixed issue with turning off ProducerCache


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/be4e17e9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/be4e17e9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/be4e17e9

Branch: refs/heads/master
Commit: be4e17e933c3b4370f09e5a6eb5965c3741a1acd
Parents: 177f54c
Author: Saravanakumar Selvaraj <ss...@ssaravan.pnq.csb>
Authored: Thu Jul 13 01:04:53 2017 +0530
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Thu Jul 13 08:18:29 2017 +0200

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/be4e17e9/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
index 41dc71f..d66cd0e 100644
--- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
+++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
@@ -75,7 +75,8 @@ public class LRUCache<K, V> implements Map<K, V>, RemovalListener<K, V>, Seriali
      * @throws IllegalArgumentException if the initial capacity is negative
      */
     public LRUCache(int initialCapacity, int maximumCacheSize) {
-        this(initialCapacity, maximumCacheSize, true);
+        //Do not stop service if ConcurrentLinkedHashMap try to evict entry when its max capacity is zero.
+        this(initialCapacity, maximumCacheSize, maximumCacheSize>0);
     }
 
     /**


[2/2] camel git commit: Fixed CS

Posted by ac...@apache.org.
Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a7542736
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a7542736
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a7542736

Branch: refs/heads/master
Commit: a7542736a238b7e06dd9b6d8ec5855c72b8e986b
Parents: be4e17e
Author: Andrea Cosentino <an...@gmail.com>
Authored: Thu Jul 13 08:19:58 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Thu Jul 13 08:19:58 2017 +0200

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a7542736/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
index d66cd0e..efc3280 100644
--- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
+++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
@@ -76,7 +76,7 @@ public class LRUCache<K, V> implements Map<K, V>, RemovalListener<K, V>, Seriali
      */
     public LRUCache(int initialCapacity, int maximumCacheSize) {
         //Do not stop service if ConcurrentLinkedHashMap try to evict entry when its max capacity is zero.
-        this(initialCapacity, maximumCacheSize, maximumCacheSize>0);
+        this(initialCapacity, maximumCacheSize, maximumCacheSize > 0);
     }
 
     /**