Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cd1c6005
Unverified
Commit
cd1c6005
authored
Nov 08, 2020
by
sundb
Committed by
GitHub
Nov 08, 2020
Browse files
Typo fix: entires -> entries (#8031)
parent
25436778
Changes
5
Show whitespace changes
Inline
Side-by-side
redis.conf
View file @
cd1c6005
...
@@ -1644,7 +1644,7 @@ hll-sparse-max-bytes 3000
...
@@ -1644,7 +1644,7 @@ hll-sparse-max-bytes 3000
# maximum number of items it may contain before switching to a new node when
# maximum number of items it may contain before switching to a new node when
# appending new stream entries. If any of the following settings are set to
# appending new stream entries. If any of the following settings are set to
# zero, the limit is ignored, so for instance it is possible to set just a
# zero, the limit is ignored, so for instance it is possible to set just a
# max ent
i
res limit by setting max-bytes to 0 and max-entries to the desired
# max entr
i
es limit by setting max-bytes to 0 and max-entries to the desired
# value.
# value.
stream
-
node
-
max
-
bytes
4096
stream
-
node
-
max
-
bytes
4096
stream
-
node
-
max
-
entries
100
stream
-
node
-
max
-
entries
100
...
...
src/acl.c
View file @
cd1c6005
...
@@ -1672,7 +1672,7 @@ void addACLLogEntry(client *c, int reason, int keypos, sds username) {
...
@@ -1672,7 +1672,7 @@ void addACLLogEntry(client *c, int reason, int keypos, sds username) {
le
->
cinfo
=
NULL
;
le
->
cinfo
=
NULL
;
ACLFreeLogEntry
(
le
);
ACLFreeLogEntry
(
le
);
}
else
{
}
else
{
/* Add it to our list of ent
i
res. We'll have to trim the list
/* Add it to our list of entr
i
es. We'll have to trim the list
* to its maximum size. */
* to its maximum size. */
listAddNodeHead
(
ACLLog
,
le
);
listAddNodeHead
(
ACLLog
,
le
);
while
(
listLength
(
ACLLog
)
>
server
.
acllog_max_len
)
{
while
(
listLength
(
ACLLog
)
>
server
.
acllog_max_len
)
{
...
...
src/crcspeed.c
View file @
cd1c6005
...
@@ -84,7 +84,7 @@ static inline uint64_t rev8(uint64_t a) {
...
@@ -84,7 +84,7 @@ static inline uint64_t rev8(uint64_t a) {
/* This function is called once to initialize the CRC table for use on a
/* This function is called once to initialize the CRC table for use on a
big-endian architecture. */
big-endian architecture. */
void
crcspeed64big_init
(
crcfn64
fn
,
uint64_t
big_table
[
8
][
256
])
{
void
crcspeed64big_init
(
crcfn64
fn
,
uint64_t
big_table
[
8
][
256
])
{
/* Create the little endian table then reverse all the ent
i
res. */
/* Create the little endian table then reverse all the entr
i
es. */
crcspeed64little_init
(
fn
,
big_table
);
crcspeed64little_init
(
fn
,
big_table
);
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
for
(
int
n
=
0
;
n
<
256
;
n
++
)
{
for
(
int
n
=
0
;
n
<
256
;
n
++
)
{
...
@@ -94,7 +94,7 @@ void crcspeed64big_init(crcfn64 fn, uint64_t big_table[8][256]) {
...
@@ -94,7 +94,7 @@ void crcspeed64big_init(crcfn64 fn, uint64_t big_table[8][256]) {
}
}
void
crcspeed16big_init
(
crcfn16
fn
,
uint16_t
big_table
[
8
][
256
])
{
void
crcspeed16big_init
(
crcfn16
fn
,
uint16_t
big_table
[
8
][
256
])
{
/* Create the little endian table then reverse all the ent
i
res. */
/* Create the little endian table then reverse all the entr
i
es. */
crcspeed16little_init
(
fn
,
big_table
);
crcspeed16little_init
(
fn
,
big_table
);
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
for
(
int
n
=
0
;
n
<
256
;
n
++
)
{
for
(
int
n
=
0
;
n
<
256
;
n
++
)
{
...
...
src/help.h
View file @
cd1c6005
...
@@ -1175,7 +1175,7 @@ struct commandHelp {
...
@@ -1175,7 +1175,7 @@ struct commandHelp {
"5.0.0"
},
"5.0.0"
},
{
"XLEN"
,
{
"XLEN"
,
"key"
,
"key"
,
"Return the number of ent
i
res in a stream"
,
"Return the number of entr
i
es in a stream"
,
14
,
14
,
"5.0.0"
},
"5.0.0"
},
{
"XPENDING"
,
{
"XPENDING"
,
...
...
tests/unit/slowlog.tcl
View file @
cd1c6005
...
@@ -70,7 +70,7 @@ start_server {tags {"slowlog"} overrides {slowlog-log-slower-than 1000000}} {
...
@@ -70,7 +70,7 @@ start_server {tags {"slowlog"} overrides {slowlog-log-slower-than 1000000}} {
assert_equal
[
lindex $e 3
]
{
debug sleep 0.2
}
assert_equal
[
lindex $e 3
]
{
debug sleep 0.2
}
}
}
test
{
SLOWLOG - can clean older ent
i
res
}
{
test
{
SLOWLOG - can clean older entr
i
es
}
{
r client setname lastentry_client
r client setname lastentry_client
r config set slowlog-max-len 1
r config set slowlog-max-len 1
r debug sleep 0.2
r debug sleep 0.2
...
...
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