Scripting: globals protection can now be switched on/off.

This commit is contained in:
antirez
2012-04-13 11:16:50 +02:00
parent 430602b26c
commit 3e6a4463e0
5 changed files with 82 additions and 33 deletions

View File

@ -1067,6 +1067,7 @@ void initServerConfig() {
server.lua_time_limit = REDIS_LUA_TIME_LIMIT;
server.lua_client = NULL;
server.lua_timedout = 0;
server.lua_protect_globals = 1;
updateLRUClock();
resetServerSaveParams();