Compare
bc280e5
... +0 ...
df24d39
bc280e5
... +0 ...
df24d39
Showing 1 of 1 files from the diff.
@@ -77,6 +77,7 @@
Loading
77 | 77 | //for 2.6 |
|
78 | 78 | if (StringUtils.isNotEmpty(newConditionRoute.getService())) { |
|
79 | 79 | for (Route old : convertRouteToOldRoute(oldConditionRoute)) { |
|
80 | + | old.setService(id); |
|
80 | 81 | registry.unregister(old.toUrl().addParameter(Constants.COMPATIBLE_CONFIG, true)); |
|
81 | 82 | } |
|
82 | 83 | for (Route updated : convertRouteToOldRoute(newConditionRoute)) { |
@@ -101,6 +102,7 @@
Loading
101 | 102 | RoutingRule originRule = YamlParser.loadObject(config, RoutingRule.class); |
|
102 | 103 | ConditionRouteDTO conditionRouteDTO = RouteUtils.createConditionRouteFromRule(originRule); |
|
103 | 104 | for (Route old : convertRouteToOldRoute(conditionRouteDTO)) { |
|
105 | + | old.setService(id); |
|
104 | 106 | URL oldUrl = old.toUrl(); |
|
105 | 107 | if(oldUrl.getParameter("rule").contains("host") && oldUrl.getParameter("rule").contains("false")) { |
|
106 | 108 | registry.unregister(oldUrl); |
Learn more Showing 1 files with coverage changes found.
Changes in
→
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/RegistryServerSync.java
-1
-1
+2
Loading file...
2 Commits
Files | Complexity | Coverage |
---|---|---|
dubbo-admin-server/src/main/java/org/apache/dubbo/admin | 19.06% | 0.08% 21.58% |
Project Totals (149 files) | 19.06% | 21.58% |
df24d39
bc280e5