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
be159490
Commit
be159490
authored
May 14, 2014
by
antirez
Browse files
Cluster: don't accept cluster bus connections during startup.
parent
b8a71e5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
be159490
...
...
@@ -502,6 +502,10 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
REDIS_NOTUSED
(
mask
);
REDIS_NOTUSED
(
privdata
);
/* If the server is starting up, don't accept cluster connections:
* UPDATE messages may interact with the database content. */
if
(
server
.
masterhost
==
NULL
&&
server
.
loading
)
return
;
while
(
max
--
)
{
cfd
=
anetTcpAccept
(
server
.
neterr
,
fd
,
cip
,
sizeof
(
cip
),
&
cport
);
if
(
cfd
==
ANET_ERR
)
{
...
...
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