summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-11-22 15:50:00 +0100
committerantirez <antirez@gmail.com>2012-11-22 15:50:00 +0100
commit95f68f7b0fc4ffc700361484b6c792a8e03f3a13 (patch)
tree225d63ec86aee5291405e6610e8e90681697302a /src/scripting.c
parentcceb0c5b4a24d9027abfc47924d5f93af87034b4 (diff)
downloadredis-95f68f7b0fc4ffc700361484b6c792a8e03f3a13.tar.gz
EVALSHA is now case insensitive.
EVALSHA used to crash if the SHA1 was not lowercase (Issue #783). Fixed using a case insensitive dictionary type for the sha -> script map used for replication of scripts.
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 23404338b..d614f42a1 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -532,7 +532,7 @@ void scriptingInit(void) {
/* Initialize a dictionary we use to map SHAs to scripts.
* This is useful for replication, as we need to replicate EVALSHA
* as EVAL, so we need to remember the associated script. */
- server.lua_scripts = dictCreate(&dbDictType,NULL);
+ server.lua_scripts = dictCreate(&shaScriptObjectDictType,NULL);
/* Register the redis commands table and fields */
lua_newtable(lua);