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
8ea4bdd9
Commit
8ea4bdd9
authored
Sep 17, 2019
by
antirez
Browse files
RESP3: Lua double -> RESP3 conversion.
parent
89f929b1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
8ea4bdd9
...
@@ -389,6 +389,17 @@ void luaReplyToRedisReply(client *c, lua_State *lua) {
...
@@ -389,6 +389,17 @@ void luaReplyToRedisReply(client *c, lua_State *lua) {
}
}
lua_pop(lua,1); /* Discard field name pushed before. */
lua_pop(lua,1); /* Discard field name pushed before. */
/* Handle double reply. */
lua_pushstring(lua,"double");
lua_gettable(lua,-2);
t = lua_type(lua,-1);
if (t == LUA_TNUMBER) {
addReplyDouble(c,lua_tonumber(lua,-1));
lua_pop(lua,2);
return;
}
lua_pop(lua,1); /* Discard field name pushed before. */
/* Handle map reply. */
/* Handle map reply. */
lua_pushstring(lua,"map");
lua_pushstring(lua,"map");
lua_gettable(lua,-2);
lua_gettable(lua,-2);
...
...
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