mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
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…
x
Reference in New Issue
Block a user