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
414d5db8
Commit
414d5db8
authored
May 15, 2013
by
antirez
Browse files
Use memtoll() when parsing the backlog-size option.
parent
604efb02
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
414d5db8
...
...
@@ -256,7 +256,7 @@ void loadServerConfigFromString(char *config) {
err = "argument must be 'yes' or 'no'"; goto loaderr;
}
} else if (!strcasecmp(argv[0],"repl-backlog-size") && argc == 2) {
long
long
size
=
str
toll
(
argv
[
1
],
NULL
,
10
);
long long size =
mem
toll(argv[1],NULL);
if (size <= 0) {
err = "repl-backlog-size must be 1 or greater.";
goto loaderr;
...
...
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