Skip to content

Commit

Permalink
修复注册中心为zookeeper,管理控制台删除路由失败的问题
Browse files Browse the repository at this point in the history
这个问题是因为,在启用路由规则时,去掉了enabled参数。在删除路由规则时Route.toUrl方法会始终加上enabled参数,这样导致删除时zookeeper
中path不存在,删除失败。
  • Loading branch information
bohrqiu committed Sep 13, 2013
1 parent 8bdeb54 commit 9109e91
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -72,8 +72,8 @@ public void enableRoute(Long id) {
return;
}

URL newRoute = oldRoute.removeParameter("enabled");
registryService.unregister(oldRoute);
registryService.unregister(oldRoute);
URL newRoute= oldRoute.addParameter("enabled", true);
registryService.register(newRoute);

}
Expand Down

2 comments on commit 9109e91

@yinjg
Copy link

@yinjg yinjg commented on 9109e91 Apr 10, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fffff

@hwq2363071
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么中国这么好的开源框架要太监?
Why should such a good open source framework China eunuch?
我英语不好一路找过来你让我看这个?
My English is not good all the way to get over you let me see this?

Please sign in to comment.