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

Function RedisProtocolToLuaTypeError

src/storage/scripting.cc:1147–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1145}
1146
1147const char *RedisProtocolToLuaTypeError(lua_State *lua, const char *reply) {
1148 const char *p = strchr(reply + 1, '\r');
1149
1150 lua_newtable(lua);
1151 lua_pushstring(lua, "err");
1152 lua_pushlstring(lua, reply + 1, p - reply - 1);
1153 lua_settable(lua, -3);
1154 return p + 2;
1155}
1156
1157const char *RedisProtocolToLuaTypeAggregate(lua_State *lua, const char *reply, int atype) {
1158 const char *p = strchr(reply + 1, '\r');

Callers 1

RedisProtocolToLuaTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected