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

Function clusterNodeClearSlotBit

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

Clear the slot bit and return the old value. */

Source from the content-addressed store, hash-verified

3868
3869/* Clear the slot bit and return the old value. */
3870int clusterNodeClearSlotBit(clusterNode *n, int slot) {
3871 int old = bitmapTestBit(n->slots,slot);
3872 bitmapClearBit(n->slots,slot);
3873 if (old) n->numslots--;
3874 return old;
3875}
3876
3877/* Return the slot bit from the cluster node structure. */
3878int clusterNodeGetSlotBit(clusterNode *n, int slot) {

Callers 1

clusterDelSlotFunction · 0.85

Calls 2

bitmapTestBitFunction · 0.85
bitmapClearBitFunction · 0.85

Tested by

no test coverage detected