Skip to content

Commit b92a481

Browse files
committed
Doc fixes: VALID_FLAGS, mm_last_pg, mt_loose_count
1 parent b922a5a commit b92a481

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libraries/liblmdb/mdb.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,9 +974,9 @@ typedef struct MDB_db {
974974
pgno_t md_root; /**< the root page of this tree */
975975
} MDB_db;
976976

977-
/** mdb_dbi_open flags */
978977
#define MDB_VALID 0x8000 /**< DB handle is valid, for me_dbflags */
979978
#define PERSISTENT_FLAGS (0xffff & ~(MDB_VALID))
979+
/** #mdb_dbi_open() flags */
980980
#define VALID_FLAGS (MDB_REVERSEKEY|MDB_DUPSORT|MDB_INTEGERKEY|MDB_DUPFIXED|\
981981
MDB_INTEGERDUP|MDB_REVERSEDUP|MDB_CREATE)
982982

@@ -1007,7 +1007,10 @@ typedef struct MDB_meta {
10071007
#define mm_psize mm_dbs[FREE_DBI].md_pad
10081008
/** Any persistent environment flags. @ref mdb_env */
10091009
#define mm_flags mm_dbs[FREE_DBI].md_flags
1010-
pgno_t mm_last_pg; /**< last used page in file */
1010+
/** Last used page in the datafile.
1011+
* Actually the file may be shorter if the freeDB lists the final pages.
1012+
*/
1013+
pgno_t mm_last_pg;
10111014
volatile txnid_t mm_txnid; /**< txnid that committed this page */
10121015
} MDB_meta;
10131016

@@ -1057,7 +1060,7 @@ struct MDB_txn {
10571060
* in this transaction, linked through #NEXT_LOOSE_PAGE(page).
10581061
*/
10591062
MDB_page *mt_loose_pgs;
1060-
/* #Number of loose pages (#mt_loose_pgs) */
1063+
/** Number of loose pages (#mt_loose_pgs) */
10611064
int mt_loose_count;
10621065
/** The sorted list of dirty pages we temporarily wrote to disk
10631066
* because the dirty list was full. page numbers in here are

0 commit comments

Comments
 (0)