This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch var-route
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 85f825e70ae27b04e03381d5b6f8255779ce1f00
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sat Feb 10 12:42:57 2024 +0100

    CAMEL-20406: Route scoped variables
---
 .../src/main/java/org/apache/camel/support/RouteVariableRepository.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/core/camel-support/src/main/java/org/apache/camel/support/RouteVariableRepository.java
 
b/core/camel-support/src/main/java/org/apache/camel/support/RouteVariableRepository.java
index 11b126acf44..13f8b135e7c 100644
--- 
a/core/camel-support/src/main/java/org/apache/camel/support/RouteVariableRepository.java
+++ 
b/core/camel-support/src/main/java/org/apache/camel/support/RouteVariableRepository.java
@@ -157,6 +157,7 @@ public final class RouteVariableRepository extends 
ServiceSupport implements Bro
         if (variables != null) {
             if ("*".equals(key)) {
                 variables.clear();
+                routes.remove(id);
                 return null;
             } else {
                 return variables.remove(key);

Reply via email to