mirror of https://mirror.osredm.com/root/redis.git
Fix replicationFeedSlaves() to use sdsEncodedObject() macro.
This commit is contained in:
parent
894eba07c8
commit
a31693417d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue