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
3d56be37
Unverified
Commit
3d56be37
authored
Apr 27, 2021
by
Andy Pan
Committed by
GitHub
Apr 27, 2021
Browse files
Fixes some typos (#8874)
parent
93e77506
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/t_hash.c
View file @
3d56be37
...
@@ -546,7 +546,7 @@ robj *hashTypeDup(robj *o) {
...
@@ -546,7 +546,7 @@ robj *hashTypeDup(robj *o) {
return
hobj
;
return
hobj
;
}
}
/* callback for to check the ziplist doesn't have duplicate recor
e
ds */
/* callback for to check the ziplist doesn't have duplicate records */
static
int
_hashZiplistEntryValidation
(
unsigned
char
*
p
,
void
*
userdata
)
{
static
int
_hashZiplistEntryValidation
(
unsigned
char
*
p
,
void
*
userdata
)
{
struct
{
struct
{
long
count
;
long
count
;
...
...
src/t_list.c
View file @
3d56be37
...
@@ -562,7 +562,7 @@ void ltrimCommand(client *c) {
...
@@ -562,7 +562,7 @@ void ltrimCommand(client *c) {
*
*
* If COUNT is given, instead of returning the single element, a list of
* If COUNT is given, instead of returning the single element, a list of
* all the matching elements up to "num-matches" are returned. COUNT can
* all the matching elements up to "num-matches" are returned. COUNT can
* be combi
l
ed with RANK in order to returning only the element starting
* be combi
n
ed with RANK in order to returning only the element starting
* from the Nth. If COUNT is zero, all the matching elements are returned.
* from the Nth. If COUNT is zero, all the matching elements are returned.
*
*
* MAXLEN tells the command to scan a max of len elements. If zero (the
* MAXLEN tells the command to scan a max of len elements. If zero (the
...
...
src/t_stream.c
View file @
3d56be37
...
@@ -1376,7 +1376,7 @@ void streamPropagateXCLAIM(client *c, robj *key, streamCG *group, robj *groupnam
...
@@ -1376,7 +1376,7 @@ void streamPropagateXCLAIM(client *c, robj *key, streamCG *group, robj *groupnam
decrRefCount
(
argv
[
13
]);
decrRefCount
(
argv
[
13
]);
}
}
/* We need this when we want to prop
o
agate the new last-id of a consumer group
/* We need this when we want to propagate the new last-id of a consumer group
* that was consumed by XREADGROUP with the NOACK option: in that case we can't
* that was consumed by XREADGROUP with the NOACK option: in that case we can't
* propagate the last ID just using the XCLAIM LASTID option, so we emit
* propagate the last ID just using the XCLAIM LASTID option, so we emit
*
*
...
...
src/t_string.c
View file @
3d56be37
...
@@ -836,7 +836,7 @@ void stralgoLCS(client *c) {
...
@@ -836,7 +836,7 @@ void stralgoLCS(client *c) {
* it backward, but the length is already known, we store it into idx. */
* it backward, but the length is already known, we store it into idx. */
uint32_t
idx
=
LCS
(
alen
,
blen
);
uint32_t
idx
=
LCS
(
alen
,
blen
);
sds
result
=
NULL
;
/* Resulting LCS string. */
sds
result
=
NULL
;
/* Resulting LCS string. */
void
*
arraylenptr
=
NULL
;
/* Def
f
ered length of the array for IDX. */
void
*
arraylenptr
=
NULL
;
/* Defe
r
red length of the array for IDX. */
uint32_t
arange_start
=
alen
,
/* alen signals that values are not set. */
uint32_t
arange_start
=
alen
,
/* alen signals that values are not set. */
arange_end
=
0
,
arange_end
=
0
,
brange_start
=
0
,
brange_start
=
0
,
...
...
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