SCRIPT LOAD now returns the SHA1 instead of +OK

This commit is contained in:
antirez 2011-10-25 14:46:15 +02:00
parent 8cb8d417b1
commit e5abf6ef19
2 changed files with 2 additions and 2 deletions

View File

@ -737,8 +737,8 @@ void scriptCommand(redisClient *c) {
return; return;
} }
} }
addReplyBulkCBuffer(c,funcname+2,40);
sdsfree(sha); sdsfree(sha);
addReply(c,shared.ok);
} else { } else {
addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args."); addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args.");
} }

View File

@ -187,7 +187,7 @@ start_server {tags {"scripting"}} {
list \ list \
[r script load "return 'loaded'"] \ [r script load "return 'loaded'"] \
[r evalsha b534286061d4b9e4026607613b95c06c06015ae8 0] [r evalsha b534286061d4b9e4026607613b95c06c06015ae8 0]
} {OK loaded} } {b534286061d4b9e4026607613b95c06c06015ae8 loaded}
} }
start_server {tags {"scripting repl"}} { start_server {tags {"scripting repl"}} {