Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9330bcc7
Commit
9330bcc7
authored
Nov 26, 2018
by
antirez
Browse files
RESP3: Fix API in scripting.c leaving Lua conversions RESP2.
parent
f07f3d72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
9330bcc7
...
...
@@ -315,7 +315,7 @@ void luaReplyToRedisReply(client *c, lua_State *lua) {
sdsfree
(
ok
);
lua_pop
(
lua
,
1
);
}
else
{
void
*
replylen
=
addDeferred
MultiBulkLength
(
c
);
void
*
replylen
=
add
Reply
Deferred
Len
(
c
);
int
j
=
1
,
mbulklen
=
0
;
lua_pop
(
lua
,
1
);
/* Discard the 'ok' field value we popped */
...
...
@@ -330,7 +330,7 @@ void luaReplyToRedisReply(client *c, lua_State *lua) {
luaReplyToRedisReply
(
c
,
lua
);
mbulklen
++
;
}
setDeferred
MultiBulkLength
(
c
,
replylen
,
mbulklen
);
setDeferred
ArrayLen
(
c
,
replylen
,
mbulklen
);
}
break
;
default:
...
...
@@ -1501,7 +1501,7 @@ NULL
}
else
if
(
c
->
argc
>=
2
&&
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"exists"
))
{
int
j
;
addReply
MultiBulk
Len
(
c
,
c
->
argc
-
2
);
addReply
Array
Len
(
c
,
c
->
argc
-
2
);
for
(
j
=
2
;
j
<
c
->
argc
;
j
++
)
{
if
(
dictFind
(
server
.
lua_scripts
,
c
->
argv
[
j
]
->
ptr
))
addReply
(
c
,
shared
.
cone
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment