summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-08-24 20:07:43 +0800
committerGitHub <noreply@github.com>2022-08-24 15:07:43 +0300
commit78259826cd35fd1b03cf0fce122c6e3e2fd69961 (patch)
tree3febbe22386ec5a76263917100ad70556f3f39f5
parentc07212372c3e03e9b4f459142d01a5f1895a0f9c (diff)
downloadredis-78259826cd35fd1b03cf0fce122c6e3e2fd69961.tar.gz
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
-rw-r--r--.codespell/requirements.txt2
-rw-r--r--.codespell/wordlist.txt3
-rw-r--r--src/object.c2
-rw-r--r--src/sentinel.c2
-rw-r--r--src/tls.c2
-rw-r--r--tests/support/util.tcl2
-rw-r--r--tests/unit/dump.tcl2
-rw-r--r--tests/unit/type/stream-cgroups.tcl4
-rw-r--r--tests/unit/type/stream.tcl2
9 files changed, 12 insertions, 9 deletions
diff --git a/.codespell/requirements.txt b/.codespell/requirements.txt
index 2e904927e..2f1c4287d 100644
--- a/.codespell/requirements.txt
+++ b/.codespell/requirements.txt
@@ -1 +1 @@
-codespell==2.1.0
+codespell==2.2.1
diff --git a/.codespell/wordlist.txt b/.codespell/wordlist.txt
index 986773b60..0bc0beb1e 100644
--- a/.codespell/wordlist.txt
+++ b/.codespell/wordlist.txt
@@ -16,3 +16,6 @@ cancelability
ist
statics
filetest
+ro
+exat
+clen \ No newline at end of file
diff --git a/src/object.c b/src/object.c
index 0f36f8f8c..6a5e85e9d 100644
--- a/src/object.c
+++ b/src/object.c
@@ -62,7 +62,7 @@ robj *createObject(int type, void *ptr) {
* objects such as small integers from different threads without any
* mutex.
*
- * A common patter to create shared objects:
+ * A common pattern to create shared objects:
*
* robj *myobject = makeObjectShared(createObject(...));
*
diff --git a/src/sentinel.c b/src/sentinel.c
index a75eb3236..30d939aee 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -200,7 +200,7 @@ typedef struct sentinelRedisInstance {
dict *renamed_commands; /* Commands renamed in this instance:
Sentinel will use the alternative commands
mapped on this table to send things like
- SLAVEOF, CONFING, INFO, ... */
+ SLAVEOF, CONFIG, INFO, ... */
/* Role and the first time we observed it.
* This is useful in order to delay replacing what the instance reports
diff --git a/src/tls.c b/src/tls.c
index 99cbea5a2..6ccd279f9 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -313,7 +313,7 @@ static int tlsConfigure(void *priv, int reconfigure) {
int protocols = parseProtocolsConfig(ctx_config->protocols);
if (protocols == -1) goto error;
- /* Create server side/generla context */
+ /* Create server side/general context */
ctx = createSSLContext(ctx_config, protocols, 0);
if (!ctx) goto error;
diff --git a/tests/support/util.tcl b/tests/support/util.tcl
index c7aef0f50..0499fd055 100644
--- a/tests/support/util.tcl
+++ b/tests/support/util.tcl
@@ -158,7 +158,7 @@ proc count_log_lines {srv_idx} {
# returns the number of times a line with that pattern appears in a file
proc count_message_lines {file pattern} {
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 pattern wasn't found)
catch {
set res [string trim [exec grep $pattern $file 2> /dev/null | wc -l]]
}
diff --git a/tests/unit/dump.tcl b/tests/unit/dump.tcl
index 2e940bda7..28efa4fe4 100644
--- a/tests/unit/dump.tcl
+++ b/tests/unit/dump.tcl
@@ -91,7 +91,7 @@ start_server {tags {"dump"}} {
r get foo
} {bar2}
- test {RESTORE can detect a syntax error for unrecongized options} {
+ test {RESTORE can detect a syntax error for unrecognized options} {
catch {r restore foo 0 "..." invalid-option} e
set e
} {*syntax*}
diff --git a/tests/unit/type/stream-cgroups.tcl b/tests/unit/type/stream-cgroups.tcl
index 7568a46ff..398ebf2e1 100644
--- a/tests/unit/type/stream-cgroups.tcl
+++ b/tests/unit/type/stream-cgroups.tcl
@@ -468,7 +468,7 @@ start_server {
assert {[llength [lindex $reply 0 1 0 1]] == 2}
assert {[lindex $reply 0 1 0 1] eq {a 1}}
- # make sure the entry is present in both the gorup, and the right consumer
+ # make sure the entry is present in both the group, and the right consumer
assert {[llength [r XPENDING mystream mygroup - + 10]] == 1}
assert {[llength [r XPENDING mystream mygroup - + 10 consumer1]] == 1}
assert {[llength [r XPENDING mystream mygroup - + 10 consumer2]] == 0}
@@ -480,7 +480,7 @@ start_server {
assert {[llength [lindex $reply 0 1]] == 2}
assert {[lindex $reply 0 1] eq {a 1}}
- # make sure the entry is present in both the gorup, and the right consumer
+ # make sure the entry is present in both the group, and the right consumer
assert {[llength [r XPENDING mystream mygroup - + 10]] == 1}
assert {[llength [r XPENDING mystream mygroup - + 10 consumer1]] == 0}
assert {[llength [r XPENDING mystream mygroup - + 10 consumer2]] == 1}
diff --git a/tests/unit/type/stream.tcl b/tests/unit/type/stream.tcl
index 529e3c34d..184e8b982 100644
--- a/tests/unit/type/stream.tcl
+++ b/tests/unit/type/stream.tcl
@@ -865,7 +865,7 @@ start_server {tags {"stream"}} {
assert_equal [dict get $reply recorded-first-entry-id] "4-0"
}
- test {Maxmimum XDEL ID behaves correctly} {
+ test {Maximum XDEL ID behaves correctly} {
r DEL x
r XADD x 1-0 data a
r XADD x 2-0 data b