MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / clusterNodeGetSlotBit

Function clusterNodeGetSlotBit

src/cluster.cpp:3937–3939  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3935
3936/* Return the slot bit from the cluster node structure. */
3937int clusterNodeGetSlotBit(clusterNode *n, int slot) {
3938 return bitmapTestBit(n->slots,slot);
3939}
3940
3941/* Add the specified slot to the list of slots that node 'n' will
3942 * 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