Merge pull request #6304 from dbenders/fix-issue-6141

Fix issue #6141: cluster rebalance does not support binary key
This commit is contained in:
Salvatore Sanfilippo 2019-09-30 17:43:58 +02:00 committed by GitHub
commit 2478b47b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3298,7 +3298,7 @@ static redisReply *clusterManagerMigrateKeysInReply(clusterManagerNode *source,
redisReply *entry = reply->element[i];
size_t idx = i + offset;
assert(entry->type == REDIS_REPLY_STRING);
argv[idx] = (char *) sdsnew(entry->str);
argv[idx] = (char *) sdsnewlen(entry->str, entry->len);
argv_len[idx] = entry->len;
if (dots) dots[i] = '.';
}