-
Notifications
You must be signed in to change notification settings - Fork 39
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
can we handle the value contain \0
?
#46
Comments
cetcd use redis's sds to handle string. It is supported to write binary. Do you have more details? |
all the function parameter is |
@YuleiXiao In fact, you can pass a cetcd_string as the parameter. It is actually a sds type. |
Passing a cetcd_string to cetcd_set() will not solve the problem, since strlen is a libc string function and not a sds function. You have to adjust all string functions in cetcd to only use sds functions and nothing else. This would be a binary incompatible change breaking all existing applications. |
@thkukuk Yeah, you are right. I will think about how to support binary safe string |
Further more, you can't expect a JSON interface to support binary directly. Just take base64. |
We try to write key-value pair but the value is binary, contain
\0
. It can not store all value into etcd.The text was updated successfully, but these errors were encountered: