Unverified Commit 24da71e5 authored by 蔡相跃's avatar 蔡相跃 Committed by GitHub
Browse files

Fix typo "the the" (#10399)

parent adc5a321
...@@ -4,7 +4,7 @@ on: ...@@ -4,7 +4,7 @@ on:
push: push:
pull_request: pull_request:
schedule: schedule:
# run weekly new vulnerability was added to the the database # run weekly new vulnerability was added to the database
- cron: '0 0 * * 0' - cron: '0 0 * * 0'
jobs: jobs:
......
...@@ -299,7 +299,7 @@ static sds percentDecode(const char *pe, size_t len) { ...@@ -299,7 +299,7 @@ static sds percentDecode(const char *pe, size_t len) {
} }
/* Parse a URI and extract the server connection information. /* Parse a URI and extract the server connection information.
* URI scheme is based on the the provisional specification[1] excluding support * URI scheme is based on the provisional specification[1] excluding support
* for query parameters. Valid URIs are: * for query parameters. Valid URIs are:
* scheme: "redis://" * scheme: "redis://"
* authority: [[<username> ":"] <password> "@"] [<hostname> [":" <port>]] * authority: [[<username> ":"] <password> "@"] [<hostname> [":" <port>]]
......
...@@ -407,7 +407,7 @@ long activeDefragSdsListAndDict(list *l, dict *d, int dict_val_type) { ...@@ -407,7 +407,7 @@ long activeDefragSdsListAndDict(list *l, dict *d, int dict_val_type) {
* new pointer. Additionally, we try to defrag the dictEntry in that dict. * new pointer. Additionally, we try to defrag the dictEntry in that dict.
* Oldkey mey be a dead pointer and should not be accessed (we get a * Oldkey mey be a dead pointer and should not be accessed (we get a
* pre-calculated hash value). Newkey may be null if the key pointer wasn't * pre-calculated hash value). Newkey may be null if the key pointer wasn't
* moved. Return value is the the dictEntry if found, or NULL if not found. * moved. Return value is the dictEntry if found, or NULL if not found.
* NOTE: this is very ugly code, but it let's us avoid the complication of * NOTE: this is very ugly code, but it let's us avoid the complication of
* doing a scan on another dict. */ * doing a scan on another dict. */
dictEntry* replaceSatelliteDictKeyPtrAndOrDefragDictEntry(dict *d, sds oldkey, sds newkey, uint64_t hash, long *defragged) { dictEntry* replaceSatelliteDictKeyPtrAndOrDefragDictEntry(dict *d, sds oldkey, sds newkey, uint64_t hash, long *defragged) {
......
...@@ -10197,7 +10197,7 @@ static uint64_t moduleEventVersions[] = { ...@@ -10197,7 +10197,7 @@ static uint64_t moduleEventVersions[] = {
* are now triggered when repl-diskless-load is set to swapdb. * are now triggered when repl-diskless-load is set to swapdb.
* *
* Called when repl-diskless-load config is set to swapdb, * Called when repl-diskless-load config is set to swapdb,
* And redis needs to backup the the current database for the * And redis needs to backup the current database for the
* possibility to be restored later. A module with global data and * possibility to be restored later. A module with global data and
* maybe with aux_load and aux_save callbacks may need to use this * maybe with aux_load and aux_save callbacks may need to use this
* notification to backup / restore / discard its globals. * notification to backup / restore / discard its globals.
......
...@@ -1697,7 +1697,7 @@ struct redisServer { ...@@ -1697,7 +1697,7 @@ struct redisServer {
int rdb_pipe_numconns; /* target of diskless rdb fork child. */ int rdb_pipe_numconns; /* target of diskless rdb fork child. */
int rdb_pipe_numconns_writing; /* Number of rdb conns with pending writes. */ int rdb_pipe_numconns_writing; /* Number of rdb conns with pending writes. */
char *rdb_pipe_buff; /* In diskless replication, this buffer holds data */ char *rdb_pipe_buff; /* In diskless replication, this buffer holds data */
int rdb_pipe_bufflen; /* that was read from the the rdb pipe. */ int rdb_pipe_bufflen; /* that was read from the rdb pipe. */
int rdb_key_save_delay; /* Delay in microseconds between keys while int rdb_key_save_delay; /* Delay in microseconds between keys while
* writing the RDB. (for testings). negative * writing the RDB. (for testings). negative
* value means fractions of microseconds (on average). */ * value means fractions of microseconds (on average). */
......
...@@ -803,7 +803,7 @@ unsigned char *__ziplistCascadeUpdate(unsigned char *zl, unsigned char *p) { ...@@ -803,7 +803,7 @@ unsigned char *__ziplistCascadeUpdate(unsigned char *zl, unsigned char *p) {
/* Update tail offset after loop. */ /* Update tail offset after loop. */
if (tail == zl + prevoffset) { if (tail == zl + prevoffset) {
/* When the the last entry we need to update is also the tail, update tail offset /* When the last entry we need to update is also the tail, update tail offset
* unless this is the only entry that was updated (so the tail offset didn't change). */ * unless this is the only entry that was updated (so the tail offset didn't change). */
if (extra - delta != 0) { if (extra - delta != 0) {
ZIPLIST_TAIL_OFFSET(zl) = ZIPLIST_TAIL_OFFSET(zl) =
......
...@@ -82,7 +82,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r ...@@ -82,7 +82,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r
fail "defrag didn't stop." fail "defrag didn't stop."
} }
# Test the the fragmentation is lower. # Test the fragmentation is lower.
after 120 ;# serverCron only updates the info once in 100ms after 120 ;# serverCron only updates the info once in 100ms
set frag [s allocator_frag_ratio] set frag [s allocator_frag_ratio]
set max_latency 0 set max_latency 0
...@@ -226,7 +226,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r ...@@ -226,7 +226,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r
fail "defrag didn't stop." fail "defrag didn't stop."
} }
# test the the fragmentation is lower # test the fragmentation is lower
after 120 ;# serverCron only updates the info once in 100ms after 120 ;# serverCron only updates the info once in 100ms
if {$::verbose} { if {$::verbose} {
puts "used [s allocator_allocated]" puts "used [s allocator_allocated]"
...@@ -336,7 +336,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r ...@@ -336,7 +336,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r
fail "defrag didn't stop." fail "defrag didn't stop."
} }
# test the the fragmentation is lower # test the fragmentation is lower
after 120 ;# serverCron only updates the info once in 100ms after 120 ;# serverCron only updates the info once in 100ms
set frag [s allocator_frag_ratio] set frag [s allocator_frag_ratio]
set max_latency 0 set max_latency 0
...@@ -433,7 +433,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r ...@@ -433,7 +433,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r
fail "defrag didn't stop." fail "defrag didn't stop."
} }
# test the the fragmentation is lower # test the fragmentation is lower
after 120 ;# serverCron only updates the info once in 100ms after 120 ;# serverCron only updates the info once in 100ms
set misses [s active_defrag_misses] set misses [s active_defrag_misses]
set hits [s active_defrag_hits] set hits [s active_defrag_hits]
...@@ -553,7 +553,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r ...@@ -553,7 +553,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r
fail "defrag didn't stop." fail "defrag didn't stop."
} }
# test the the fragmentation is lower # test the fragmentation is lower
after 120 ;# serverCron only updates the info once in 100ms after 120 ;# serverCron only updates the info once in 100ms
set misses [s active_defrag_misses] set misses [s active_defrag_misses]
set hits [s active_defrag_hits] set hits [s active_defrag_hits]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment