Home
last modified time | relevance | path

Searched refs:numslots (Results 1 – 3 of 3) sorted by relevance

/redis-3.2.3/src/
H A Dredis-trib.rb872 def compute_reshard_table(sources,numslots) argument
895 if moved.length < numslots
1102 if numslots > 0
1107 if reshard_table.length != numslots
1128 dst.info[:balance] += numslots
1129 src.info[:balance] -= numslots
1157 numslots = opt['slots'].to_i
1159 numslots = 0
1160 while numslots <= 0 or numslots > ClusterHashSlots
1162 numslots = STDIN.gets.to_i
[all …]
H A Dcluster.c664 node->numslots = 0; in createClusterNode()
1187 if (nodeIsSlave(node) || node->numslots == 0) { in clearNodeFailureIfNeeded()
1200 if (nodeIsMaster(node) && node->numslots > 0 && in clearNodeFailureIfNeeded()
1511 if (newmaster && curmaster->numslots == 0) { in clusterUpdateSlotsConfigWith()
2256 (this->link == NULL && this->numslots == 0)) in clusterSendPing()
2733 myself->slaveof->numslots == 0) in clusterHandleSlaveFailover()
3203 if (okslaves == 0 && node->numslots > 0 && in clusterCron()
3381 n->numslots++; in clusterNodeSetSlotBit()
3405 if (old) n->numslots--; in clusterNodeClearSlotBit()
3519 if (nodeIsMaster(node) && node->numslots) { in clusterUpdateState()
[all …]
H A Dcluster.h88 int numslots; /* Number of slots handled by this node */ member