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

Function lazyFreeTrackingTable

src/lazyfree.cpp:41–47  ·  view source on GitHub ↗

Release the key tracking table. */

Source from the content-addressed store, hash-verified

39
40/* Release the key tracking table. */
41void lazyFreeTrackingTable(void *args[]) {
42 rax *rt = (rax*)args[0];
43 size_t len = rt->numele;
44 freeTrackingRadixTree(rt);
45 atomicDecr(lazyfree_objects,len);
46 atomicIncr(lazyfreed_objects,len);
47}
48
49void lazyFreeLuaScripts(void *args[]) {
50 dict *lua_scripts = (dict*)args[0];

Callers

nothing calls this directly

Calls 1

freeTrackingRadixTreeFunction · 0.85

Tested by

no test coverage detected