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

fix two bugs #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

wentianxiaokai
Copy link

"1,fix the bug in cetcd.c:397,modify 'if(watcher->index){' to 'if(index){',so the modified index can increase;2,fix the bug in cetcd.c:509 in the function of cetcd_multi_watch_async,the variable 'pthread_t thread' should be imported as a parameter like 'pthread_t * thread' which is mallocd by the user,so it can be use when function cetcd_multi_watch_async ended.Nor it will core.

likai10 added 2 commits September 4, 2018 19:29
…x){',so the modified index can increase;2,fix the bug in cetcd.c:509 in the function of cetcd_multi_watch_async,the variable 'pthread_t thread' should be imported as a parameter like 'pthread_t * thread' which is mallocd by the user,so it can be use when function cetcd_multi_watch_async ended.Nor it will core.
…d.c:397行的 watcher->index 修改为 index,是为了修复当连续两个set事件产生的时候,而用户回调函数处理时间很长,cetcd.c只能捕获到第一个set事件,而无法捕获到第二个事件,这样会导致事件丢失
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.

None yet

1 participant