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
119ec91a
Unverified
Commit
119ec91a
authored
Apr 25, 2022
by
Binbin
Committed by
GitHub
Apr 25, 2022
Browse files
Fix typos and limit unknown command error message (#10634)
minor cleanup for recent changes.
parent
0c35f54f
Changes
5
Show whitespace changes
Inline
Side-by-side
src/bitops.c
View file @
119ec91a
...
...
@@ -1002,7 +1002,7 @@ void bitposCommand(client *c) {
}
}
/* BITFIELD key subcomm
m
and-1 arg ... subcommand-2 arg ... subcommand-N ...
/* BITFIELD key subcommand-1 arg ... subcommand-2 arg ... subcommand-N ...
*
* Supported subcommands:
*
...
...
src/module.c
View file @
119ec91a
...
...
@@ -1049,9 +1049,9 @@ RedisModuleCommand *moduleCreateCommandProxy(struct RedisModule *module, sds dec
* serve stale data. Don't use if you don't know what
* this means.
* * **"no-monitor"**: Don't propagate the command on monitor. Use this if
* the command has sensi
bl
e data among the arguments.
* the command has sensi
tiv
e data among the arguments.
* * **"no-slowlog"**: Don't log this command in the slowlog. Use this if
* the command has sensi
bl
e data among the arguments.
* the command has sensi
tiv
e data among the arguments.
* * **"fast"**: The command time complexity is not greater
* than O(log(N)) where N is the size of the collection or
* anything else representing the normal scalability
...
...
src/networking.c
View file @
119ec91a
...
...
@@ -3812,7 +3812,7 @@ void flushSlavesOutputBuffers(void) {
}
}
/* Compute current most restictive pause type and its end time, aggregated for
/* Compute current most rest
r
ictive pause type and its end time, aggregated for
* all pause purposes. */
static
void
updateClientPauseTypeAndEndTime
(
void
)
{
pause_type
old_type
=
server
.
client_pause_type
;
...
...
src/server.c
View file @
119ec91a
...
...
@@ -3494,7 +3494,7 @@ void populateCommandMovableKeys(struct redisCommand *cmd) {
cmd
->
flags
|=
CMD_MOVABLE_KEYS
;
}
/* Check if c->cmd exists, fills `err` with de
a
tils in case it doesn't
/* Check if c->cmd exists, fills `err` with det
a
ils in case it doesn't
.
* Return 1 if exists. */
int
commandCheckExistence
(
client
*
c
,
sds
*
err
)
{
if
(
c
->
cmd
)
...
...
@@ -3516,14 +3516,14 @@ int commandCheckExistence(client *c, sds *err) {
for
(
i
=
1
;
i
<
c
->
argc
&&
sdslen
(
args
)
<
128
;
i
++
)
args
=
sdscatprintf
(
args
,
"'%.*s' "
,
128
-
(
int
)
sdslen
(
args
),
(
char
*
)
c
->
argv
[
i
]
->
ptr
);
*
err
=
sdsnew
(
NULL
);
*
err
=
sdscatprintf
(
*
err
,
"unknown command '%s', with args beginning with: %s"
,
*
err
=
sdscatprintf
(
*
err
,
"unknown command '%
.128
s', with args beginning with: %s"
,
(
char
*
)
c
->
argv
[
0
]
->
ptr
,
args
);
sdsfree
(
args
);
}
return
0
;
}
/* Check if c->argc is valid for c->cmd, fills `err` with de
a
tils in case it isn't
/* Check if c->argc is valid for c->cmd, fills `err` with det
a
ils in case it isn't
.
* Return 1 if valid. */
int
commandCheckArity
(
client
*
c
,
sds
*
err
)
{
if
((
c
->
cmd
->
arity
>
0
&&
c
->
cmd
->
arity
!=
c
->
argc
)
||
...
...
src/server.h
View file @
119ec91a
...
...
@@ -1062,7 +1062,7 @@ typedef struct replBacklog {
listNode
*
ref_repl_buf_node
;
/* Referenced node of replication buffer blocks,
* see the definition of replBufBlock. */
size_t
unindexed_count
;
/* The count from last creating index block. */
rax
*
blocks_index
;
/* The index of re
o
crded blocks of replication
rax
*
blocks_index
;
/* The index of rec
o
rded blocks of replication
* buffer for quickly searching replication
* offset on partial resynchronization. */
long
long
histlen
;
/* Backlog actual data length */
...
...
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