@@ -974,9 +974,9 @@ typedef struct MDB_db {
974
974
pgno_t md_root ; /**< the root page of this tree */
975
975
} MDB_db ;
976
976
977
- /** mdb_dbi_open flags */
978
977
#define MDB_VALID 0x8000 /**< DB handle is valid, for me_dbflags */
979
978
#define PERSISTENT_FLAGS (0xffff & ~(MDB_VALID))
979
+ /** #mdb_dbi_open() flags */
980
980
#define VALID_FLAGS (MDB_REVERSEKEY|MDB_DUPSORT|MDB_INTEGERKEY|MDB_DUPFIXED|\
981
981
MDB_INTEGERDUP|MDB_REVERSEDUP|MDB_CREATE)
982
982
@@ -1007,7 +1007,10 @@ typedef struct MDB_meta {
1007
1007
#define mm_psize mm_dbs[FREE_DBI].md_pad
1008
1008
/** Any persistent environment flags. @ref mdb_env */
1009
1009
#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 ;
1011
1014
volatile txnid_t mm_txnid ; /**< txnid that committed this page */
1012
1015
} MDB_meta ;
1013
1016
@@ -1057,7 +1060,7 @@ struct MDB_txn {
1057
1060
* in this transaction, linked through #NEXT_LOOSE_PAGE(page).
1058
1061
*/
1059
1062
MDB_page * mt_loose_pgs ;
1060
- /* # Number of loose pages (#mt_loose_pgs) */
1063
+ /** Number of loose pages (#mt_loose_pgs) */
1061
1064
int mt_loose_count ;
1062
1065
/** The sorted list of dirty pages we temporarily wrote to disk
1063
1066
* because the dirty list was full. page numbers in here are
0 commit comments