Clear the bit at position 'pos' in a bitmap. */
| 3819 | |
| 3820 | /* Clear the bit at position 'pos' in a bitmap. */ |
| 3821 | void 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 |
no outgoing calls
no test coverage detected