mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
Cluster: fix case for getKeysInSlot() and countKeysInSlot().
Redis functions start in low case. A few functions about cluster were capitalized the wrong way.
This commit is contained in:
@ -1534,7 +1534,7 @@ void clusterCommand(redisClient *c) {
|
||||
if (server.cluster->slots[slot] == server.cluster->myself &&
|
||||
n != server.cluster->myself)
|
||||
{
|
||||
if (CountKeysInSlot(slot) != 0) {
|
||||
if (countKeysInSlot(slot) != 0) {
|
||||
addReplyErrorFormat(c, "Can't assign hashslot %d to a different node while I still hold keys for this hash slot.", slot);
|
||||
return;
|
||||
}
|
||||
@ -1619,7 +1619,7 @@ void clusterCommand(redisClient *c) {
|
||||
}
|
||||
|
||||
keys = zmalloc(sizeof(robj*)*maxkeys);
|
||||
numkeys = GetKeysInSlot(slot, keys, maxkeys);
|
||||
numkeys = getKeysInSlot(slot, keys, maxkeys);
|
||||
addReplyMultiBulkLen(c,numkeys);
|
||||
for (j = 0; j < numkeys; j++) addReplyBulk(c,keys[j]);
|
||||
zfree(keys);
|
||||
|
Reference in New Issue
Block a user