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

Function freeLuaScriptsAsync

app/redis-6.2.6/src/lazyfree.c:224–231  ·  view source on GitHub ↗

Free lua_scripts dict, if the dict is huge enough, free it in async way. */

Source from the content-addressed store, hash-verified

222
223/* Free lua_scripts dict, if the dict is huge enough, free it in async way. */
224void freeLuaScriptsAsync(dict *lua_scripts) {
225 if (dictSize(lua_scripts) > LAZYFREE_THRESHOLD) {
226 atomicIncr(lazyfree_objects,dictSize(lua_scripts));
227 bioCreateLazyFreeJob(lazyFreeLuaScripts,1,lua_scripts);
228 } else {
229 dictRelease(lua_scripts);
230 }
231}

Callers 1

scriptingReleaseFunction · 0.85

Calls 2

bioCreateLazyFreeJobFunction · 0.85
dictReleaseFunction · 0.70

Tested by

no test coverage detected