Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix for UnregisterEvent #129

Merged
merged 3 commits into from
Jul 16, 2019
Merged

bug fix for UnregisterEvent #129

merged 3 commits into from
Jul 16, 2019

Conversation

pantianying
Copy link
Member

What this PR does:
将UnregisterEvent函数中的循环去掉,该事件意在删除满足if条件e == event的注册地址,而不是删除整个zkPath对应的注册列表。
原代码中:如果函数中a的长度是2,经过删除长度为1,能继续进入循环,但因为无满足的e == event,无法继续删除,造成死循环。
改动:函数并没有重复检查是否有zkPath的注册信息的必要,删除for循环。
Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@pantianying pantianying changed the title Tmp1 bug fix for UnregisterEvent Jul 15, 2019
@codecov-io
Copy link

codecov-io commented Jul 15, 2019

Codecov Report

Merging #129 into master will decrease coverage by 0.03%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
- Coverage   68.59%   68.56%   -0.04%     
==========================================
  Files          69       69              
  Lines        4347     4346       -1     
==========================================
- Hits         2982     2980       -2     
  Misses       1064     1064              
- Partials      301      302       +1
Impacted Files Coverage Δ
remoting/zookeeper/client.go 64.34% <71.42%> (-0.69%) ⬇️
config_center/zookeeper/listener.go 86.95% <0%> (+4.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e582cc0...0ecb948. Read the comment docs.

Copy link
Contributor

@hxmhlt hxmhlt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@fangyincheng fangyincheng left a comment

Choose a reason for hiding this comment

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

LGTM

@AlexStocks AlexStocks merged commit 197f248 into apache:master Jul 16, 2019
@pantianying pantianying deleted the tmp1 branch August 19, 2019 08:16
LaurenceLiZhixin pushed a commit to LaurenceLiZhixin/dubbo-go that referenced this pull request Jul 17, 2021
* add general .run file

* add .run xml

* del repeat xml in general folder

* mod format xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants