summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdamansky Anton <adamansky@gmail.com>2017-07-12 12:41:38 +0700
committerGitHub <noreply@github.com>2017-07-12 12:41:38 +0700
commitd98f3df764ba89ba5c3eceb34d1f25bb85026d21 (patch)
tree3eef0d7039b6b7e3f35e1dca6639df4e32507c0e
parent7edc17ce1207d7fc74e7e09a9adc7a0348f69010 (diff)
parent1dd5919203248f75fd9f7bcb062cd629260f6820 (diff)
downloadejdb-upstream.tar.gz
ejdb-upstream.tar.bz2
ejdb-upstream.zip
Merge pull request #189 from steelman/bnum-commentsupstream
minor fix in comments
-rw-r--r--src/ejdb/ejdb.h2
-rw-r--r--src/tcbdb/tcbdb.c2
-rw-r--r--src/tchdb/tchdb.c2
-rw-r--r--src/tctdb/tctdb.h2
-rw-r--r--src/tcutil/tcutil.c4
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) \