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
24da71e5
Unverified
Commit
24da71e5
authored
Mar 09, 2022
by
蔡相跃
Committed by
GitHub
Mar 09, 2022
Browse files
Fix typo "the the" (#10399)
parent
adc5a321
Changes
7
Hide whitespace changes
Inline
Side-by-side
.github/workflows/codeql-analysis.yml
View file @
24da71e5
...
...
@@ -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
:
...
...
src/cli_common.c
View file @
24da71e5
...
...
@@ -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: [[<username> ":"] <password> "@"] [<hostname> [":" <port>]]
...
...
src/defrag.c
View file @
24da71e5
...
...
@@ -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
)
{
...
...
src/module.c
View file @
24da71e5
...
...
@@ -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.
...
...
src/server.h
View file @
24da71e5
...
...
@@ -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). */
...
...
src/ziplist.c
View file @
24da71e5
...
...
@@ -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
)
=
...
...
tests/unit/memefficiency.tcl
View file @
24da71e5
...
...
@@ -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
]
...
...
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