Commit e5abf6ef authored by antirez's avatar antirez
Browse files

SCRIPT LOAD now returns the SHA1 instead of +OK

parent 8cb8d417
......@@ -737,8 +737,8 @@ void scriptCommand(redisClient *c) {
return;
}
}
addReplyBulkCBuffer(c,funcname+2,40);
sdsfree(sha);
addReply(c,shared.ok);
} else {
addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args.");
}
......
......@@ -187,7 +187,7 @@ start_server {tags {"scripting"}} {
list \
[r script load "return 'loaded'"] \
[r evalsha b534286061d4b9e4026607613b95c06c06015ae8 0]
} {OK loaded}
} {b534286061d4b9e4026607613b95c06c06015ae8 loaded}
}
start_server {tags {"scripting repl"}} {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment