]> git.sur5r.net Git - openldap/commitdiff
More MDB_node doc
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 21 Dec 2016 20:40:14 +0000 (21:40 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 21 Dec 2016 20:42:36 +0000 (21:42 +0100)
libraries/liblmdb/mdb.c

index 5b799e112bcbbda4292ae519340eee563627fc96..5ca0e0ae0f6a253c768ba62324d4bafada689327 100644 (file)
@@ -978,6 +978,11 @@ typedef struct MDB_page {
         * pgno on branch nodes.  On 64 bit platforms, #mn_flags is also used
         * for pgno.  (Branch nodes have no flags).  Lo and hi are in host byte
         * order in case some accesses can be optimized to 32-bit word access.
+        *
+        * Leaf node flags describe node contents.  #F_BIGDATA says the node's
+        * data part is the page number of an overflow page with actual data.
+        * #F_DUPDATA and #F_SUBDATA can be combined giving duplicate data in
+        * a sub-page/sub-database, and named databases (just #F_SUBDATA).
         */
 typedef struct MDB_node {
        /** part of data size or pgno