mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 09:30:55 +00:00
luaRedisGenericCommand() recursion: just return an error.
Instead of calling redisPanic() to abort the server. Related to issue #2302.
This commit is contained in:
parent
839767ad0b
commit
bc8675612f
@ -221,7 +221,9 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
|
|||||||
* To make this function reentrant is futile and makes it slower, but
|
* To make this function reentrant is futile and makes it slower, but
|
||||||
* we should at least detect such a misuse, and abort. */
|
* we should at least detect such a misuse, and abort. */
|
||||||
if (inuse) {
|
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++;
|
inuse++;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user