mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Cluster: handle zero bytes at the end of nodes.conf.
This commit is contained in:
parent
18d32c7e1c
commit
cfdb3a2214
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user