Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2205c465
Commit
2205c465
authored
May 05, 2016
by
antirez
Browse files
Cluster: don't check scripts key slots during AOF loading.
parent
94dc71ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
2205c465
...
...
@@ -512,8 +512,10 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
/* If this is a Redis Cluster node, we need to make sure Lua is not
* trying to access non-local keys, with the exception of commands
* received from our master. */
if
(
server
.
cluster_enabled
&&
!
(
server
.
lua_caller
->
flags
&
CLIENT_MASTER
))
{
* received from our master or when loading the AOF back in memory. */
if
(
server
.
cluster_enabled
&&
!
server
.
loading
&&
!
(
server
.
lua_caller
->
flags
&
CLIENT_MASTER
))
{
/* Duplicate relevant flags in the lua client. */
c
->
flags
&=
~
(
CLIENT_READONLY
|
CLIENT_ASKING
);
c
->
flags
|=
server
.
lua_caller
->
flags
&
(
CLIENT_READONLY
|
CLIENT_ASKING
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment