MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / freeSlotsToKeysMap

Function freeSlotsToKeysMap

src/db.cpp:2507–2513  ·  view source on GitHub ↗

Release the radix tree mapping Redis Cluster keys to slots. If 'async' * is true, we release it asynchronously. */

Source from the content-addressed store, hash-verified

2505/* Release the radix tree mapping Redis Cluster keys to slots. If 'async'
2506 * is true, we release it asynchronously. */
2507void freeSlotsToKeysMap(rax *rt, int async) {
2508 if (async) {
2509 freeSlotsToKeysMapAsync(rt);
2510 } else {
2511 raxFree(rt);
2512 }
2513}
2514
2515/* Empty the slots-keys map of Redis CLuster by creating a new empty one and
2516 * freeing the old one. */

Callers 2

discardDbBackupFunction · 0.85
slotToKeyFlushFunction · 0.85

Calls 2

freeSlotsToKeysMapAsyncFunction · 0.85
raxFreeFunction · 0.85

Tested by

no test coverage detected