cetcd
cetcd copied to clipboard
Cetcd is a C client library for etcd with full features support
I modified his code to v3 version : https://github.com/chinazj/cetcd
Etcd v3 has been released for some days, and we should catch up and support the latest api
the recent hireds is using sds 2.0 ,while cetcd use sds 1.x. it cause the problem when they combine together in one project.
"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...
(gdb) thread apply all bt Thread 3 (Thread 0x7ffff053f700 (LWP 34885)): #0 0x00007ffff76cff4d in write () from /lib64/libc.so.6 #1 0x00007ffff765e363 in _IO_new_file_write () from /lib64/libc.so.6 #2 0x00007ffff765f7cc in __GI__IO_do_write ()...
We try to write key-value pair but the value is binary, contain ```\0```. It can not store all value into etcd.
it appears that when value of the key is large (something larger than 1024 or so) Expect: 100-continue is used from libcurl (if i can recall by defult) and state...
the example code is like this below. I add a watcher and start async watch. Then stop it, add another watcher and start it again. I found that only the...
The documents is too simple now. There are some more details we need - More about multiple watchers - Add guides about how to use the C api - Add...