This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ca6731047d8 CAMEL-19060: use LongAdder in DefaultInflightRepository to
reduce contention
ca6731047d8 is described below
commit ca6731047d83c80c709c5e4fd84e2b6f61392cce
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun May 7 16:16:27 2023 +0200
CAMEL-19060: use LongAdder in DefaultInflightRepository to reduce contention
---
.../java/org/apache/camel/impl/engine/DefaultInflightRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultInflightRepository.java
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultInflightRepository.java
index 30650e6a079..25988d4d48a 100644
---
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultInflightRepository.java
+++
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultInflightRepository.java
@@ -77,7 +77,7 @@ public class DefaultInflightRepository extends ServiceSupport
implements Infligh
public void remove(Exchange exchange, String routeId) {
LongAdder existing = routeCount.get(routeId);
if (existing != null) {
- existing.increment();
+ existing.decrement();
}
}