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
78259826
Unverified
Commit
78259826
authored
Aug 24, 2022
by
Binbin
Committed by
GitHub
Aug 24, 2022
Browse files
Bump codespell from 2.1.0 to 2.2.1 in /.codespell (#11184)
add a few terms to the white list, and fix a few newly detected typos
parent
c0721237
Changes
9
Hide whitespace changes
Inline
Side-by-side
.codespell/requirements.txt
View file @
78259826
codespell==2.
1.0
codespell==2.
2.1
.codespell/wordlist.txt
View file @
78259826
...
@@ -16,3 +16,6 @@ cancelability
...
@@ -16,3 +16,6 @@ cancelability
ist
ist
statics
statics
filetest
filetest
ro
exat
clen
\ No newline at end of file
src/object.c
View file @
78259826
...
@@ -62,7 +62,7 @@ robj *createObject(int type, void *ptr) {
...
@@ -62,7 +62,7 @@ robj *createObject(int type, void *ptr) {
* objects such as small integers from different threads without any
* objects such as small integers from different threads without any
* mutex.
* mutex.
*
*
* A common patter to create shared objects:
* A common patter
n
to create shared objects:
*
*
* robj *myobject = makeObjectShared(createObject(...));
* robj *myobject = makeObjectShared(createObject(...));
*
*
...
...
src/sentinel.c
View file @
78259826
...
@@ -200,7 +200,7 @@ typedef struct sentinelRedisInstance {
...
@@ -200,7 +200,7 @@ typedef struct sentinelRedisInstance {
dict *renamed_commands; /* Commands renamed in this instance:
dict *renamed_commands; /* Commands renamed in this instance:
Sentinel will use the alternative commands
Sentinel will use the alternative commands
mapped on this table to send things like
mapped on this table to send things like
SLAVEOF, CONFI
N
G, INFO, ... */
SLAVEOF, CONFIG, INFO, ... */
/* Role and the first time we observed it.
/* Role and the first time we observed it.
* This is useful in order to delay replacing what the instance reports
* This is useful in order to delay replacing what the instance reports
...
...
src/tls.c
View file @
78259826
...
@@ -313,7 +313,7 @@ static int tlsConfigure(void *priv, int reconfigure) {
...
@@ -313,7 +313,7 @@ static int tlsConfigure(void *priv, int reconfigure) {
int
protocols
=
parseProtocolsConfig
(
ctx_config
->
protocols
);
int
protocols
=
parseProtocolsConfig
(
ctx_config
->
protocols
);
if
(
protocols
==
-
1
)
goto
error
;
if
(
protocols
==
-
1
)
goto
error
;
/* Create server side/gener
l
a context */
/* Create server side/genera
l
context */
ctx
=
createSSLContext
(
ctx_config
,
protocols
,
0
);
ctx
=
createSSLContext
(
ctx_config
,
protocols
,
0
);
if
(
!
ctx
)
goto
error
;
if
(
!
ctx
)
goto
error
;
...
...
tests/support/util.tcl
View file @
78259826
...
@@ -158,7 +158,7 @@ proc count_log_lines {srv_idx} {
...
@@ -158,7 +158,7 @@ proc count_log_lines {srv_idx} {
# returns the number of times a line with that pattern appears in a file
# returns the number of times a line with that pattern appears in a file
proc count_message_lines
{
file pattern
}
{
proc count_message_lines
{
file pattern
}
{
set res 0
set res 0
# exec fails when grep exists with status other than 0
(
when the patter wasn't found
)
# exec fails when grep exists with status other than 0
(
when the patter
n
wasn't found
)
catch
{
catch
{
set res
[
string trim
[
exec grep $pattern $file 2> /dev/null | wc -l
]]
set res
[
string trim
[
exec grep $pattern $file 2> /dev/null | wc -l
]]
}
}
...
...
tests/unit/dump.tcl
View file @
78259826
...
@@ -91,7 +91,7 @@ start_server {tags {"dump"}} {
...
@@ -91,7 +91,7 @@ start_server {tags {"dump"}} {
r get foo
r get foo
}
{
bar2
}
}
{
bar2
}
test
{
RESTORE can detect a syntax error for unreco
n
gized options
}
{
test
{
RESTORE can detect a syntax error for unrecog
n
ized options
}
{
catch
{
r restore foo 0
"..."
invalid-option
}
e
catch
{
r restore foo 0
"..."
invalid-option
}
e
set e
set e
}
{
*syntax*
}
}
{
*syntax*
}
...
...
tests/unit/type/stream-cgroups.tcl
View file @
78259826
...
@@ -468,7 +468,7 @@ start_server {
...
@@ -468,7 +468,7 @@ start_server {
assert
{[
llength
[
lindex $reply 0 1 0 1
]]
== 2
}
assert
{[
llength
[
lindex $reply 0 1 0 1
]]
== 2
}
assert
{[
lindex $reply 0 1 0 1
]
eq
{
a 1
}}
assert
{[
lindex $reply 0 1 0 1
]
eq
{
a 1
}}
# make sure the entry is present in both the g
o
rup, and the right consumer
# make sure the entry is present in both the gr
o
up, and the right consumer
assert
{[
llength
[
r XPENDING mystream mygroup - + 10
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer1
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer1
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer2
]]
== 0
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer2
]]
== 0
}
...
@@ -480,7 +480,7 @@ start_server {
...
@@ -480,7 +480,7 @@ start_server {
assert
{[
llength
[
lindex $reply 0 1
]]
== 2
}
assert
{[
llength
[
lindex $reply 0 1
]]
== 2
}
assert
{[
lindex $reply 0 1
]
eq
{
a 1
}}
assert
{[
lindex $reply 0 1
]
eq
{
a 1
}}
# make sure the entry is present in both the g
o
rup, and the right consumer
# make sure the entry is present in both the gr
o
up, and the right consumer
assert
{[
llength
[
r XPENDING mystream mygroup - + 10
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer1
]]
== 0
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer1
]]
== 0
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer2
]]
== 1
}
assert
{[
llength
[
r XPENDING mystream mygroup - + 10 consumer2
]]
== 1
}
...
...
tests/unit/type/stream.tcl
View file @
78259826
...
@@ -865,7 +865,7 @@ start_server {tags {"stream"}} {
...
@@ -865,7 +865,7 @@ start_server {tags {"stream"}} {
assert_equal
[
dict get $reply recorded-first-entry-id
]
"4-0"
assert_equal
[
dict get $reply recorded-first-entry-id
]
"4-0"
}
}
test
{
Max
m
imum XDEL ID behaves correctly
}
{
test
{
Maximum XDEL ID behaves correctly
}
{
r DEL x
r DEL x
r XADD x 1-0 data a
r XADD x 1-0 data a
r XADD x 2-0 data b
r XADD x 2-0 data b
...
...
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