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

Function freeSlotsToKeysMap

app/redis-6.2.6/src/db.c:1945–1951  ·  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

1943/* Release the radix tree mapping Redis Cluster keys to slots. If 'async'
1944 * is true, we release it asynchronously. */
1945void freeSlotsToKeysMap(rax *rt, int async) {
1946 if (async) {
1947 freeSlotsToKeysMapAsync(rt);
1948 } else {
1949 raxFree(rt);
1950 }
1951}
1952
1953/* Empty the slots-keys map of Redis CLuster by creating a new empty one and
1954 * 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