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

Commits on Sep 4, 2018

  1. 1,fix the bug in cetcd.c:397,modify 'if(watcher->index){' to 'if(inde…

    …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.
    likai10 committed Sep 4, 2018
    Configuration menu
    Copy the full SHA
    cfb70c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2018

  1. 1,取消修改pthread_t的bug,因为pthread_t底层是一个 long int 的变量,所以不会造成内存泄漏;2,将 cetc…

    …d.c:397行的 watcher->index 修改为 index,是为了修复当连续两个set事件产生的时候,而用户回调函数处理时间很长,cetcd.c只能捕获到第一个set事件,而无法捕获到第二个事件,这样会导致事件丢失
    likai10 committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    6b69561 View commit details
    Browse the repository at this point in the history