Stop access to global vars. Not configurable.

After considering the interaction between ability to delcare globals in
scripts using the 'global' function, and the complexities related to
hanlding replication and AOF in a sane way with globals AND ability to
turn protection On and Off, we reconsidered the design. The new design
makes clear that there is only one good way to write Redis scripts, that
is not using globals. In the rare cases state must be retained across
calls a Redis key can be used.
This commit is contained in:
antirez
2012-04-13 13:26:59 +02:00
parent 6255a5ae66
commit 97cab30993
5 changed files with 4 additions and 57 deletions

View File

@ -1067,7 +1067,6 @@ 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();