Free lua_scripts dict, if the dict is huge enough, free it in async way. */
| 240 | |
| 241 | /* Free lua_scripts dict, if the dict is huge enough, free it in async way. */ |
| 242 | void freeLuaScriptsAsync(dict *lua_scripts) { |
| 243 | if (dictSize(lua_scripts) > LAZYFREE_THRESHOLD) { |
| 244 | atomicIncr(lazyfree_objects,dictSize(lua_scripts)); |
| 245 | bioCreateLazyFreeJob(lazyFreeLuaScripts,1,lua_scripts); |
| 246 | } else { |
| 247 | dictRelease(lua_scripts); |
| 248 | } |
| 249 | } |
no test coverage detected