X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibmdb%2Fmdb.h;h=9075c41e0c6d929f0556fdca2aed1d9df7e348dd;hb=68143e4532ba3b3dccdb4e80665140542170d6d6;hp=949936782fc41c7b2d6371869608b43c596ab728;hpb=619e671f1c85446c09864430030ad99c33561cc2;p=openldap diff --git a/libraries/libmdb/mdb.h b/libraries/libmdb/mdb.h index 949936782f..9075c41e0c 100644 --- a/libraries/libmdb/mdb.h +++ b/libraries/libmdb/mdb.h @@ -149,6 +149,8 @@ typedef void (MDB_rel_func)(MDB_val *item, void *oldptr, void *newptr, void *rel */ /** mmap at a fixed address */ #define MDB_FIXEDMAP 0x01 + /** no environment directory */ +#define MDB_NOSUBDIR 0x02 /** don't fsync after commit */ #define MDB_NOSYNC 0x10000 /** read only */ @@ -187,6 +189,14 @@ typedef void (MDB_rel_func)(MDB_val *item, void *oldptr, void *newptr, void *rel #define MDB_NODUPDATA 0x20 /** For mdb_cursor_put: overwrite the current key/data pair */ #define MDB_CURRENT 0x40 +/** For put: Just reserve space for data, don't copy it. Return a + * pointer to the reserved space. + */ +#define MDB_RESERVE 0x10000 +/** Data is being appended, don't split full pages. */ +#define MDB_APPEND 0x20000 +/** Store multiple data items in one call. */ +#define MDB_MULTIPLE 0x40000 /* @} */ /** @brief Cursor Get operations. @@ -305,6 +315,12 @@ int mdb_env_create(MDB_env **env); * across multiple invocations. This option may not always work, depending on * how the operating system has allocated memory to shared libraries and other uses. * The feature is highly experimental. + *