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
cdd10193
Commit
cdd10193
authored
Nov 08, 2018
by
antirez
Browse files
RESP3: Use new deferred len API in config.c.
parent
470c2838
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
cdd10193
...
@@ -1324,7 +1324,7 @@ badfmt: /* Bad format errors */
...
@@ -1324,7 +1324,7 @@ badfmt: /* Bad format errors */
void
configGetCommand
(
client
*
c
)
{
void
configGetCommand
(
client
*
c
)
{
robj
*
o
=
c
->
argv
[
2
];
robj
*
o
=
c
->
argv
[
2
];
void
*
replylen
=
addDeferred
MultiBulkLength
(
c
);
void
*
replylen
=
add
Reply
Deferred
Len
(
c
);
char
*
pattern
=
o
->
ptr
;
char
*
pattern
=
o
->
ptr
;
char
buf
[
128
];
char
buf
[
128
];
int
matches
=
0
;
int
matches
=
0
;
...
@@ -1571,7 +1571,7 @@ void configGetCommand(client *c) {
...
@@ -1571,7 +1571,7 @@ void configGetCommand(client *c) {
sdsfree
(
aux
);
sdsfree
(
aux
);
matches
++
;
matches
++
;
}
}
setDeferredM
ultiBulkLength
(
c
,
replylen
,
matches
*
2
);
setDeferredM
apLen
(
c
,
replylen
,
matches
);
}
}
/*-----------------------------------------------------------------------------
/*-----------------------------------------------------------------------------
...
...
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