You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/09/04 12:14:00 UTC

[2/2] git commit: CAMEL-6705: DefaultStreamCachingStrategy - Check for enabled in shouldSpoolCache method

CAMEL-6705: DefaultStreamCachingStrategy - Check for enabled in shouldSpoolCache method


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

Branch: refs/heads/camel-2.12.x
Commit: 39354f96dbac8cf59507f8f364d39db10b177679
Parents: 0da8635
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Sep 4 11:35:01 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Sep 4 12:13:45 2013 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/impl/DefaultStreamCachingStrategy.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/39354f96/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
index fc833de..dd121e4 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultStreamCachingStrategy.java
@@ -153,7 +153,7 @@ public class DefaultStreamCachingStrategy extends org.apache.camel.support.Servi
     }
 
     public boolean shouldSpoolCache(long length) {
-        if (spoolRules.isEmpty()) {
+        if (!enabled || spoolRules.isEmpty()) {
             return false;
         }