diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 603a05fdd..b93c078aa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,7 +4,7 @@ on: push: pull_request: schedule: - # run weekly new vulnerability was added to the the database + # run weekly new vulnerability was added to the database - cron: '0 0 * * 0' jobs: diff --git a/src/cli_common.c b/src/cli_common.c index 6d627d2b4..33069017b 100644 --- a/src/cli_common.c +++ b/src/cli_common.c @@ -299,7 +299,7 @@ static sds percentDecode(const char *pe, size_t len) { } /* 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: * scheme: "redis://" * authority: [[ ":"] "@"] [ [":" ]] diff --git a/src/defrag.c b/src/defrag.c index d4983c6d5..6a4f9f633 100644 --- a/src/defrag.c +++ b/src/defrag.c @@ -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. * 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 - * 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 * doing a scan on another dict. */ dictEntry* replaceSatelliteDictKeyPtrAndOrDefragDictEntry(dict *d, sds oldkey, sds newkey, uint64_t hash, long *defragged) { diff --git a/src/module.c b/src/module.c index d0b1d7ce5..64c3f1e9a 100644 --- a/src/module.c +++ b/src/module.c @@ -10197,7 +10197,7 @@ static uint64_t moduleEventVersions[] = { * are now triggered when repl-diskless-load 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 * maybe with aux_load and aux_save callbacks may need to use this * notification to backup / restore / discard its globals. diff --git a/src/server.h b/src/server.h index 4e4d0c9ed..92ca57229 100644 --- a/src/server.h +++ b/src/server.h @@ -1697,7 +1697,7 @@ struct redisServer { int rdb_pipe_numconns; /* target of diskless rdb fork child. */ int rdb_pipe_numconns_writing; /* Number of rdb conns with pending writes. */ 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 * writing the RDB. (for testings). negative * value means fractions of microseconds (on average). */ diff --git a/src/ziplist.c b/src/ziplist.c index 8a65f3931..d09c19e26 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -803,7 +803,7 @@ unsigned char *__ziplistCascadeUpdate(unsigned char *zl, unsigned char *p) { /* Update tail offset after loop. */ 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). */ if (extra - delta != 0) { ZIPLIST_TAIL_OFFSET(zl) = diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl index e6663ce06..cef4b8fdf 100644 --- a/tests/unit/memefficiency.tcl +++ b/tests/unit/memefficiency.tcl @@ -82,7 +82,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r 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 set frag [s allocator_frag_ratio] set max_latency 0 @@ -226,7 +226,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r 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 if {$::verbose} { puts "used [s allocator_allocated]" @@ -336,7 +336,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r 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 set frag [s allocator_frag_ratio] set max_latency 0 @@ -433,7 +433,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r 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 set misses [s active_defrag_misses] set hits [s active_defrag_hits] @@ -553,7 +553,7 @@ start_server {tags {"defrag external:skip"} overrides {appendonly yes auto-aof-r 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 set misses [s active_defrag_misses] set hits [s active_defrag_hits]