diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ejdb/ejdb.h | 2 | ||||
-rw-r--r-- | src/tcbdb/tcbdb.c | 2 | ||||
-rw-r--r-- | src/tchdb/tchdb.c | 2 | ||||
-rw-r--r-- | src/tctdb/tctdb.h | 2 | ||||
-rw-r--r-- | src/tcutil/tcutil.c | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/ejdb/ejdb.h b/src/ejdb/ejdb.h index c805979..481c627 100644 --- a/src/ejdb/ejdb.h +++ b/src/ejdb/ejdb.h @@ -143,7 +143,7 @@ EJDB_EXPORT uint16_t ejdbformatversionpatch(EJDB *jb); /** * Return true if a passed `oid` string cat be converted to valid - * 12 bit BSON object identifier (OID). + * 12 byte BSON object identifier (OID). * @param oid String */ EJDB_EXPORT bool ejdbisvalidoidstr(const char *oid); diff --git a/src/tcbdb/tcbdb.c b/src/tcbdb/tcbdb.c index 17e9e0b..4f5fcc1 100644 --- a/src/tcbdb/tcbdb.c +++ b/src/tcbdb/tcbdb.c @@ -31,7 +31,7 @@ #define BDBMINLMEMB 4 // minimum number of members in each leaf #define BDBDEFNMEMB 256 // default number of members in each node #define BDBMINNMEMB 4 // minimum number of members in each node -#define BDBDEFBNUM 32749 // default bucket number +#define BDBDEFBNUM 32749 // default number of buckets #define BDBDEFAPOW 8 // default alignment power #define BDBDEFFPOW 10 // default free block pool power #define BDBDEFLCNUM 1024 // default number of leaf cache diff --git a/src/tchdb/tchdb.c b/src/tchdb/tchdb.c index 45dee6a..051875d 100644 --- a/src/tchdb/tchdb.c +++ b/src/tchdb/tchdb.c @@ -39,7 +39,7 @@ #define HDBB64(TC_hdb) ((uint64_t *) ((TC_hdb)->map + HDBHEADSIZ)) #define HDBB32(TC_hdb) ((uint32_t *) ((TC_hdb)->map + HDBHEADSIZ)) -#define HDBDEFBNUM 131071 // default bucket number +#define HDBDEFBNUM 131071 // default number of buckets #define HDBDEFAPOW 4 // default alignment power #define HDBMAXAPOW 16 // maximum alignment power #define HDBDEFFPOW 10 // default free block pool power diff --git a/src/tctdb/tctdb.h b/src/tctdb/tctdb.h index ee29a28..7e08e71 100644 --- a/src/tctdb/tctdb.h +++ b/src/tctdb/tctdb.h @@ -1179,7 +1179,7 @@ bool tctdbtrancommitimpl(TCTDB *tdb); bool tctdbtranabortimpl(TCTDB *tdb); -#define TDBDEFBNUM 131071 // default bucket number +#define TDBDEFBNUM 131071 // default number of buckets __TCTDB_CLINKAGEEND diff --git a/src/tcutil/tcutil.c b/src/tcutil/tcutil.c index 1f7bf44..9ba7ab6 100644 --- a/src/tcutil/tcutil.c +++ b/src/tcutil/tcutil.c @@ -910,7 +910,7 @@ void tclistprintf(TCLIST *list, const char *format, ...) { #define TCMAPKMAXSIZ 0xfffff // maximum size of each key -#define TCMAPDEFBNUM 4093 // default bucket number +#define TCMAPDEFBNUM 4093 // default number of buckets #define TCMAPZMMINSIZ 131072 // minimum memory size to use nullified region #define TCMAPCSUNIT 52 // small allocation unit size of map concatenation #define TCMAPCBUNIT 252 // big allocation unit size of map concatenation @@ -3550,7 +3550,7 @@ void tctreeprintf(TCTREE *tree, const char *kstr, const char *format, ...) { #define TCMDBMNUM 8 // number of internal maps -#define TCMDBDEFBNUM 65536 // default bucket number +#define TCMDBDEFBNUM 65536 // default number of buckets /* get the first hash value */ #define TCMDBHASH(TC_res, TC_kbuf, TC_ksiz) \ |