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

Function bitmapClearBit

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

Clear the bit at position 'pos' in a bitmap. */

Source from the content-addressed store, hash-verified

3819
3820/* Clear the bit at position 'pos' in a bitmap. */
3821void bitmapClearBit(unsigned char *bitmap, int pos) {
3822 off_t byte = pos/8;
3823 int bit = pos&7;
3824 bitmap[byte] &= ~(1<<bit);
3825}
3826
3827/* Return non-zero if there is at least one master with slaves in the cluster.
3828 * Otherwise zero is returned. Used by clusterNodeSetSlotBit() to set the

Callers 1

clusterNodeClearSlotBitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected