MCPcopy Create free account
hub / github.com/apache/kvrocks / RedisProtocolToLuaTypeStatus

Function RedisProtocolToLuaTypeStatus

src/storage/scripting.cc:1137–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137const char *RedisProtocolToLuaTypeStatus(lua_State *lua, const char *reply) {
1138 const char *p = strchr(reply + 1, '\r');
1139
1140 lua_newtable(lua);
1141 lua_pushstring(lua, "ok");
1142 lua_pushlstring(lua, reply + 1, p - reply - 1);
1143 lua_settable(lua, -3);
1144 return p + 2;
1145}
1146
1147const char *RedisProtocolToLuaTypeError(lua_State *lua, const char *reply) {
1148 const char *p = strchr(reply + 1, '\r');

Callers 1

RedisProtocolToLuaTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected