mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
fix typo, stracture to structure (#8784)
This commit is contained in:
parent
645c664fbb
commit
07601b7e07
@ -284,7 +284,7 @@ size_t intsetBlobLen(intset *is) {
|
|||||||
return sizeof(intset)+intrev32ifbe(is->length)*intrev32ifbe(is->encoding);
|
return sizeof(intset)+intrev32ifbe(is->length)*intrev32ifbe(is->encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* 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. */
|
* 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) {
|
int intsetValidateIntegrity(const unsigned char *p, size_t size, int deep) {
|
||||||
|
@ -908,7 +908,7 @@ int lpValidateNext(unsigned char *lp, unsigned char **pp, size_t lpbytes) {
|
|||||||
#undef OUT_OF_RANGE
|
#undef OUT_OF_RANGE
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* when `deep` is 0, only the integrity of the header is validated.
|
||||||
* when `deep` is 1, we scan all the entries one by one. */
|
* when `deep` is 1, we scan all the entries one by one. */
|
||||||
int lpValidateIntegrity(unsigned char *lp, size_t size, int deep){
|
int lpValidateIntegrity(unsigned char *lp, size_t size, int deep){
|
||||||
|
@ -572,7 +572,7 @@ static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* when `deep` is 0, only the integrity of the header is validated.
|
||||||
* when `deep` is 1, we scan all the entries one by one. */
|
* when `deep` is 1, we scan all the entries one by one. */
|
||||||
int hashZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) {
|
int hashZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) {
|
||||||
|
@ -3547,8 +3547,8 @@ NULL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity stream listpack entries stracture. Both in term of a
|
/* Validate the integrity stream listpack entries structure. Both in term of a
|
||||||
* valid listpack, but also that the stracture of the entires matches a valid
|
* valid listpack, but also that the structure of the entires matches a valid
|
||||||
* stream. return 1 if valid 0 if not valid. */
|
* stream. return 1 if valid 0 if not valid. */
|
||||||
int streamValidateListpackIntegrity(unsigned char *lp, size_t size, int deep) {
|
int streamValidateListpackIntegrity(unsigned char *lp, size_t size, int deep) {
|
||||||
int valid_record;
|
int valid_record;
|
||||||
|
@ -1636,7 +1636,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* when `deep` is 0, only the integrity of the header is validated.
|
||||||
* when `deep` is 1, we scan all the entries one by one. */
|
* when `deep` is 1, we scan all the entries one by one. */
|
||||||
int zsetZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) {
|
int zsetZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) {
|
||||||
|
@ -1472,7 +1472,7 @@ void ziplistRepr(unsigned char *zl) {
|
|||||||
printf("{end}\n\n");
|
printf("{end}\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* when `deep` is 0, only the integrity of the header is validated.
|
||||||
* when `deep` is 1, we scan all the entries one by one. */
|
* when `deep` is 1, we scan all the entries one by one. */
|
||||||
int ziplistValidateIntegrity(unsigned char *zl, size_t size, int deep,
|
int ziplistValidateIntegrity(unsigned char *zl, size_t size, int deep,
|
||||||
|
@ -374,7 +374,7 @@ size_t zipmapBlobLen(unsigned char *zm) {
|
|||||||
return totlen;
|
return totlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Validate the integrity of the data stracture.
|
/* Validate the integrity of the data structure.
|
||||||
* when `deep` is 0, only the integrity of the header is validated.
|
* when `deep` is 0, only the integrity of the header is validated.
|
||||||
* when `deep` is 1, we scan all the entries one by one. */
|
* when `deep` is 1, we scan all the entries one by one. */
|
||||||
int zipmapValidateIntegrity(unsigned char *zm, size_t size, int deep) {
|
int zipmapValidateIntegrity(unsigned char *zm, size_t size, int deep) {
|
||||||
|
Loading…
Reference in New Issue
Block a user