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
57033301
Commit
57033301
authored
Dec 05, 2009
by
antirez
Browse files
a few redis-cli format specified fixed
parent
682ac724
Changes
2
Show whitespace changes
Inline
Side-by-side
TODO
View file @
57033301
...
...
@@ -49,6 +49,7 @@ SHORT/LONG TERM RANDOM TODO ITEMS
Most of this can be seen just as proposals, the fact they are in this list
it's not a guarantee they'll ever get implemented ;)
* Move dict.c from hash table to skip list, in order to avoid the blocking resize operation needed for the hash table.
* FORK command (fork()s executing the commands received by the current
client in the new process). Hint: large SORTs can use more cores,
copy-on-write will avoid memory problems.
...
...
redis-cli.c
View file @
57033301
...
...
@@ -311,7 +311,7 @@ static int cliSendCommand(int argc, char **argv) {
if
(
rc
->
flags
&
REDIS_CMD_MULTIBULK
)
{
cmd
=
sdscatprintf
(
cmd
,
"*%d
\r\n
"
,
argc
);
for
(
j
=
0
;
j
<
argc
;
j
++
)
{
cmd
=
sdscatprintf
(
cmd
,
"$%
d
\r\n
"
,
sdslen
(
argv
[
j
]));
cmd
=
sdscatprintf
(
cmd
,
"$%
lu
\r\n
"
,
sdslen
(
argv
[
j
]));
cmd
=
sdscatlen
(
cmd
,
argv
[
j
],
sdslen
(
argv
[
j
]));
cmd
=
sdscatlen
(
cmd
,
"
\r\n
"
,
2
);
}
...
...
@@ -319,7 +319,7 @@ static int cliSendCommand(int argc, char **argv) {
for
(
j
=
0
;
j
<
argc
;
j
++
)
{
if
(
j
!=
0
)
cmd
=
sdscat
(
cmd
,
" "
);
if
(
j
==
argc
-
1
&&
rc
->
flags
&
REDIS_CMD_BULK
)
{
cmd
=
sdscatprintf
(
cmd
,
"%
d
"
,
sdslen
(
argv
[
j
]));
cmd
=
sdscatprintf
(
cmd
,
"%
lu
"
,
sdslen
(
argv
[
j
]));
}
else
{
cmd
=
sdscatlen
(
cmd
,
argv
[
j
],
sdslen
(
argv
[
j
]));
}
...
...
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