camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] camel git commit: CAMEL-10454 fix key check
Date Tue, 15 Nov 2016 03:03:32 GMT
CAMEL-10454 fix key check


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

Branch: refs/heads/camel-2.18.x
Commit: 3f346ea84c3e97d05f55f29bfeaa37f6159b8da7
Parents: 27b572d
Author: Kevin Earls <kevin@kevinearls.com>
Authored: Mon Nov 14 20:29:17 2016 +0100
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Nov 15 10:57:02 2016 +0800

----------------------------------------------------------------------
 .../org/apache/camel/processor/idempotent/IdempotentConsumer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3f346ea8/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
b/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
index b4fb4f4..46521aa 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/idempotent/IdempotentConsumer.java
@@ -132,7 +132,7 @@ public class IdempotentConsumer extends ServiceSupport implements CamelContextAw
             } else {
                 // check if we already have the key
                 if (idempotentRepository instanceof ExchangeIdempotentRepository) {
-                    newKey = ((ExchangeIdempotentRepository<String>) idempotentRepository).contains(exchange,
messageId);
+                    newKey = !((ExchangeIdempotentRepository<String>) idempotentRepository).contains(exchange,
messageId);
                 } else {
                     newKey = !idempotentRepository.contains(messageId);
                 }


Mime
View raw message