Commit a3169341 authored by antirez's avatar antirez
Browse files

Fix replicationFeedSlaves() to use sdsEncodedObject() macro.

parent 894eba07
......@@ -200,10 +200,11 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
char *objptr;
if (argv[j]->encoding != REDIS_ENCODING_RAW &&
argv[j]->encoding != REDIS_ENCODING_INT) {
argv[j]->encoding != REDIS_ENCODING_INT &&
argv[j]->encoding != REDIS_ENCODING_EMBSTR) {
redisPanic("Unexpected encoding");
}
if (argv[j]->encoding == REDIS_ENCODING_RAW) {
if (sdsEncodedObject(argv[j])) {
objlen = sdslen(argv[j]->ptr);
objptr = argv[j]->ptr;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment