From 07601b7e0737446d9a678623d1afa24ac8a1d20e Mon Sep 17 00:00:00 2001 From: Bonsai Date: Wed, 14 Apr 2021 20:46:54 +0800 Subject: [PATCH] fix typo, stracture to structure (#8784) --- src/intset.c | 2 +- src/listpack.c | 2 +- src/t_hash.c | 2 +- src/t_stream.c | 4 ++-- src/t_zset.c | 2 +- src/ziplist.c | 2 +- src/zipmap.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/intset.c b/src/intset.c index 5498227f4..1a64ecae8 100644 --- a/src/intset.c +++ b/src/intset.c @@ -284,7 +284,7 @@ size_t intsetBlobLen(intset *is) { 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 1, we make sure there are no duplicate or out of order records. */ int intsetValidateIntegrity(const unsigned char *p, size_t size, int deep) { diff --git a/src/listpack.c b/src/listpack.c index a2255f0d7..ee256bad3 100644 --- a/src/listpack.c +++ b/src/listpack.c @@ -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 stracture. +/* Validate the integrity of the data structure. * 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){ diff --git a/src/t_hash.c b/src/t_hash.c index eb980578c..d88b80b0f 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -572,7 +572,7 @@ static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) { 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 1, we scan all the entries one by one. */ int hashZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) { diff --git a/src/t_stream.c b/src/t_stream.c index c0283f3e9..1b2fe3262 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -3547,8 +3547,8 @@ NULL } } -/* Validate the integrity stream listpack entries stracture. Both in term of a - * valid listpack, but also that the stracture of the entires matches a valid +/* Validate the integrity stream listpack entries structure. Both in term of a + * valid listpack, but also that the structure 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; diff --git a/src/t_zset.c b/src/t_zset.c index c0b4a2d08..49fdd91fe 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1636,7 +1636,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) { 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 1, we scan all the entries one by one. */ int zsetZiplistValidateIntegrity(unsigned char *zl, size_t size, int deep) { diff --git a/src/ziplist.c b/src/ziplist.c index d9e99a21c..85cb50991 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -1472,7 +1472,7 @@ void ziplistRepr(unsigned char *zl) { 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 1, we scan all the entries one by one. */ int ziplistValidateIntegrity(unsigned char *zl, size_t size, int deep, diff --git a/src/zipmap.c b/src/zipmap.c index 2ee82c2c9..c24e81355 100644 --- a/src/zipmap.c +++ b/src/zipmap.c @@ -374,7 +374,7 @@ size_t zipmapBlobLen(unsigned char *zm) { 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 1, we scan all the entries one by one. */ int zipmapValidateIntegrity(unsigned char *zm, size_t size, int deep) {