mirror of
https://github.com/fluencelabs/redis
synced 2025-04-11 03:36:05 +00:00
Allow writes from scripts called by AOF loading in read-only slaves.
This fixes issue #1163
This commit is contained in:
parent
338cd4835d
commit
d363299af3
@ -269,6 +269,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
|
|||||||
"Write commands not allowed after non deterministic commands");
|
"Write commands not allowed after non deterministic commands");
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (server.masterhost && server.repl_slave_ro &&
|
} else if (server.masterhost && server.repl_slave_ro &&
|
||||||
|
!server.loading &&
|
||||||
!(server.lua_caller->flags & REDIS_MASTER))
|
!(server.lua_caller->flags & REDIS_MASTER))
|
||||||
{
|
{
|
||||||
luaPushError(lua, shared.roslaveerr->ptr);
|
luaPushError(lua, shared.roslaveerr->ptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user