mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #6304 from dbenders/fix-issue-6141
Fix issue #6141: cluster rebalance does not support binary key
This commit is contained in:
commit
2478b47b89
@ -3298,7 +3298,7 @@ static redisReply *clusterManagerMigrateKeysInReply(clusterManagerNode *source,
|
|||||||
redisReply *entry = reply->element[i];
|
redisReply *entry = reply->element[i];
|
||||||
size_t idx = i + offset;
|
size_t idx = i + offset;
|
||||||
assert(entry->type == REDIS_REPLY_STRING);
|
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;
|
argv_len[idx] = entry->len;
|
||||||
if (dots) dots[i] = '.';
|
if (dots) dots[i] = '.';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user