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
cfdb3a22
Commit
cfdb3a22
authored
Nov 16, 2016
by
antirez
Browse files
Cluster: handle zero bytes at the end of nodes.conf.
parent
18d32c7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
cfdb3a22
...
@@ -129,7 +129,7 @@ int clusterLoadConfig(char *filename) {
...
@@ -129,7 +129,7 @@ int clusterLoadConfig(char *filename) {
/* Skip blank lines, they can be created either by users manually
/* Skip blank lines, they can be created either by users manually
* editing nodes.conf or by the config writing process if stopped
* editing nodes.conf or by the config writing process if stopped
* before the truncate() call. */
* before the truncate() call. */
if
(
line
[
0
]
==
'\n'
)
continue
;
if
(
line
[
0
]
==
'\n'
||
line
[
0
]
==
'\0'
)
continue
;
/* Split the line into arguments for processing. */
/* Split the line into arguments for processing. */
argv
=
sdssplitargs
(
line
,
&
argc
);
argv
=
sdssplitargs
(
line
,
&
argc
);
...
...
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