mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
SCRIPT LOAD now returns the SHA1 instead of +OK
This commit is contained in:
parent
8cb8d417b1
commit
e5abf6ef19
@ -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"}} {
|
||||
|
Loading…
Reference in New Issue
Block a user