提交 e5abf6ef 编写于 作者: A antirez

SCRIPT LOAD now returns the SHA1 instead of +OK

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册