]> git.saurik.com Git - redis.git/commitdiff
SCRIPT LOAD now returns the SHA1 instead of +OK
authorantirez <antirez@gmail.com>
Tue, 25 Oct 2011 12:46:15 +0000 (14:46 +0200)
committerantirez <antirez@gmail.com>
Tue, 25 Oct 2011 12:46:15 +0000 (14:46 +0200)
src/scripting.c
tests/unit/scripting.tcl

index 06862e8420bfedebaeee0a392aa7242c5d0dee9e..18a0a81ed87678d961291d49e2ad1e00243cb674 100644 (file)
@@ -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.");
     }
index 51fea5f4e6e9702dc2425e19c34c87104e5efb74..647794ebf398e3c0f166fb2dd2eaabc6e3a19e9a 100644 (file)
@@ -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"}} {