提交 1dea8b5a 编写于 作者: A antirez

luaRedisGenericCommand() recursion: just return an error.

Instead of calling redisPanic() to abort the server.

Related to issue #2302.
上级 a0ba7b3f
......@@ -220,7 +220,9 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
* To make this function reentrant is futile and makes it slower, but
* we should at least detect such a misuse, and abort. */
if (inuse) {
redisPanic("luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?");
luaPushError(lua,
"luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?");
return 1;
}
inuse++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册