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
07601b7e
Unverified
Commit
07601b7e
authored
Apr 14, 2021
by
Bonsai
Committed by
GitHub
Apr 14, 2021
Browse files
fix typo, stracture to structure (#8784)
parent
645c664f
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/intset.c
View file @
07601b7e
...
...
@@ -284,7 +284,7 @@ size_t intsetBlobLen(intset *is) {
return
sizeof
(
intset
)
+
intrev32ifbe
(
is
->
length
)
*
intrev32ifbe
(
is
->
encoding
);
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we make sure there are no duplicate or out of order records. */
int
intsetValidateIntegrity
(
const
unsigned
char
*
p
,
size_t
size
,
int
deep
)
{
...
...
src/listpack.c
View file @
07601b7e
...
...
@@ -908,7 +908,7 @@ int lpValidateNext(unsigned char *lp, unsigned char **pp, size_t lpbytes) {
#undef OUT_OF_RANGE
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we scan all the entries one by one. */
int
lpValidateIntegrity
(
unsigned
char
*
lp
,
size_t
size
,
int
deep
){
...
...
src/t_hash.c
View file @
07601b7e
...
...
@@ -572,7 +572,7 @@ static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) {
return
1
;
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we scan all the entries one by one. */
int
hashZiplistValidateIntegrity
(
unsigned
char
*
zl
,
size_t
size
,
int
deep
)
{
...
...
src/t_stream.c
View file @
07601b7e
...
...
@@ -3547,8 +3547,8 @@ NULL
}
}
/* Validate the integrity stream listpack entries str
a
cture. Both in term of a
* valid listpack, but also that the str
a
cture of the entires matches a valid
/* Validate the integrity stream listpack entries str
u
cture. Both in term of a
* valid listpack, but also that the str
u
cture of the entires matches a valid
* stream. return 1 if valid 0 if not valid. */
int
streamValidateListpackIntegrity
(
unsigned
char
*
lp
,
size_t
size
,
int
deep
)
{
int
valid_record
;
...
...
src/t_zset.c
View file @
07601b7e
...
...
@@ -1636,7 +1636,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
return
1
;
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we scan all the entries one by one. */
int
zsetZiplistValidateIntegrity
(
unsigned
char
*
zl
,
size_t
size
,
int
deep
)
{
...
...
src/ziplist.c
View file @
07601b7e
...
...
@@ -1472,7 +1472,7 @@ void ziplistRepr(unsigned char *zl) {
printf
(
"{end}
\n\n
"
);
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we scan all the entries one by one. */
int
ziplistValidateIntegrity
(
unsigned
char
*
zl
,
size_t
size
,
int
deep
,
...
...
src/zipmap.c
View file @
07601b7e
...
...
@@ -374,7 +374,7 @@ size_t zipmapBlobLen(unsigned char *zm) {
return
totlen
;
}
/* Validate the integrity of the data str
a
cture.
/* Validate the integrity of the data str
u
cture.
* when `deep` is 0, only the integrity of the header is validated.
* when `deep` is 1, we scan all the entries one by one. */
int
zipmapValidateIntegrity
(
unsigned
char
*
zm
,
size_t
size
,
int
deep
)
{
...
...
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