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
516f1c77
Commit
516f1c77
authored
Apr 18, 2018
by
Guy Benoish
Committed by
antirez
Mar 14, 2019
Browse files
Use memtoll() in 'CONFIG SET client-output-buffer-limit'
parent
8db67a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
516f1c77
...
@@ -1042,8 +1042,8 @@ void configSetCommand(client *c) {
...
@@ -1042,8 +1042,8 @@ void configSetCommand(client *c) {
int
soft_seconds
;
int
soft_seconds
;
class
=
getClientTypeByName
(
v
[
j
]);
class
=
getClientTypeByName
(
v
[
j
]);
hard
=
str
toll
(
v
[
j
+
1
],
NULL
,
10
);
hard
=
mem
toll
(
v
[
j
+
1
],
NULL
);
soft
=
str
toll
(
v
[
j
+
2
],
NULL
,
10
);
soft
=
mem
toll
(
v
[
j
+
2
],
NULL
);
soft_seconds
=
strtoll
(
v
[
j
+
3
],
NULL
,
10
);
soft_seconds
=
strtoll
(
v
[
j
+
3
],
NULL
,
10
);
server
.
client_obuf_limits
[
class
].
hard_limit_bytes
=
hard
;
server
.
client_obuf_limits
[
class
].
hard_limit_bytes
=
hard
;
...
...
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