Clear the slot bit and return the old value. */
| 3868 | |
| 3869 | /* Clear the slot bit and return the old value. */ |
| 3870 | int 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. */ |
| 3878 | int clusterNodeGetSlotBit(clusterNode *n, int slot) { |
no test coverage detected