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
2810de9f
Commit
2810de9f
authored
Sep 02, 2019
by
antirez
Browse files
Cluster: abort loading nodes data if vars arguments are unbalanced.
See for reference PR #6337. Thanks to @git-hulk for spotting this.
parent
f5c63ce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
2810de9f
...
@@ -138,6 +138,7 @@ int clusterLoadConfig(char *filename) {
...
@@ -138,6 +138,7 @@ int clusterLoadConfig(char *filename) {
/* Handle the special "vars" line. Don't pretend it is the last
/* Handle the special "vars" line. Don't pretend it is the last
* line even if it actually is when generated by Redis. */
* line even if it actually is when generated by Redis. */
if
(
strcasecmp
(
argv
[
0
],
"vars"
)
==
0
)
{
if
(
strcasecmp
(
argv
[
0
],
"vars"
)
==
0
)
{
if
(
!
(
argc
%
2
))
goto
fmterr
;
for
(
j
=
1
;
j
<
argc
;
j
+=
2
)
{
for
(
j
=
1
;
j
<
argc
;
j
+=
2
)
{
if
(
strcasecmp
(
argv
[
j
],
"currentEpoch"
)
==
0
)
{
if
(
strcasecmp
(
argv
[
j
],
"currentEpoch"
)
==
0
)
{
server
.
cluster
->
currentEpoch
=
server
.
cluster
->
currentEpoch
=
...
...
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