Slot to Key API. This is used by Redis Cluster in order to obtain in * a fast way a key that belongs to a specified hash slot. This is useful * while rehashing the cluster and in other conditions when we need to * understand if we have keys for a given hash slot. */
| 2463 | * while rehashing the cluster and in other conditions when we need to |
| 2464 | * understand if we have keys for a given hash slot. */ |
| 2465 | void slotToKeyUpdateKey(sds key, int add) { |
| 2466 | slotToKeyUpdateKeyCore(key, sdslen(key), add); |
| 2467 | } |
| 2468 | |
| 2469 | void slotToKeyUpdateKeyCore(const char *key, size_t keylen, int add) { |
| 2470 | serverAssert(GlobalLocksAcquired()); |
no test coverage detected