Free lua_scripts dict, if the dict is huge enough, free it in async way. */
| 222 | |
| 223 | /* Free lua_scripts dict, if the dict is huge enough, free it in async way. */ |
| 224 | void 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 | } |
no test coverage detected