MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clusterNodeGetSlotBit

Function clusterNodeGetSlotBit

app/redis-6.2.6/src/cluster.c:3878–3880  ·  view source on GitHub ↗

Return the slot bit from the cluster node structure. */

Source from the content-addressed store, hash-verified

3876
3877/* Return the slot bit from the cluster node structure. */
3878int clusterNodeGetSlotBit(clusterNode *n, int slot) {
3879 return bitmapTestBit(n->slots,slot);
3880}
3881
3882/* Add the specified slot to the list of slots that node 'n' will
3883 * serve. Return C_OK if the operation ended with success.

Callers 3

clusterDelNodeSlotsFunction · 0.85

Calls 1

bitmapTestBitFunction · 0.85

Tested by

no test coverage detected