Home
last modified time | relevance | path

Searched refs:hashslot (Results 1 – 5 of 5) sorted by relevance

/f-stack/app/redis-5.0.5/src/
H A Ddb.c1476 server.cluster->slots_keys_count[hashslot] += add ? 1 : -1; in slotToKeyUpdateKey()
1478 indexed[0] = (hashslot >> 8) & 0xff; in slotToKeyUpdateKey()
1479 indexed[1] = hashslot & 0xff; in slotToKeyUpdateKey()
1512 indexed[0] = (hashslot >> 8) & 0xff; in getKeysInSlot()
1513 indexed[1] = hashslot & 0xff; in getKeysInSlot()
1526 unsigned int delKeysInSlot(unsigned int hashslot) { in delKeysInSlot() argument
1531 indexed[0] = (hashslot >> 8) & 0xff; in delKeysInSlot()
1532 indexed[1] = hashslot & 0xff; in delKeysInSlot()
1534 while(server.cluster->slots_keys_count[hashslot]) { in delKeysInSlot()
1547 unsigned int countKeysInSlot(unsigned int hashslot) { in countKeysInSlot() argument
[all …]
H A Dcluster.h286 …etNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashslot, int *ask);
288 void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_code);
H A Dserver.h1850 unsigned int getKeysInSlot(unsigned int hashslot, robj **keys, unsigned int count);
1851 unsigned int countKeysInSlot(unsigned int hashslot);
1852 unsigned int delKeysInSlot(unsigned int hashslot);
H A Dcluster.c5452 …yQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashslot, int *error_code)… in getNodeByQuery() argument
5576 if (hashslot) *hashslot = slot; in getNodeByQuery()
5631 void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_code) { in clusterRedirectClient() argument
5649 hashslot,n->ip,n->port)); in clusterRedirectClient()
H A Dserver.c2604 int hashslot; in processCommand() local
2607 &hashslot,&error_code); in processCommand()
2614 clusterRedirectClient(c,n,hashslot,error_code); in processCommand()