mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7485 Document key/data size limits in lmdb.h.
mdb.c already describes them. The user doc should too.
This commit is contained in:
parent
ef25056cfb
commit
8ad25001ff
@ -192,7 +192,14 @@ typedef unsigned int MDB_dbi;
|
|||||||
/** @brief Opaque structure for navigating through a database */
|
/** @brief Opaque structure for navigating through a database */
|
||||||
typedef struct MDB_cursor MDB_cursor;
|
typedef struct MDB_cursor MDB_cursor;
|
||||||
|
|
||||||
/** @brief Generic structure used for passing keys and data in and out of the database. */
|
/** @brief Generic structure used for passing keys and data in and out
|
||||||
|
* of the database.
|
||||||
|
*
|
||||||
|
* Key sizes must be between 1 and the liblmdb build-time constant
|
||||||
|
* #MDB_MAXKEYSIZE inclusive. This currently defaults to 511. The
|
||||||
|
* same applies to data sizes in databases with the #MDB_DUPSORT flag.
|
||||||
|
* Other data items can in theory be from 0 to 0xffffffff bytes long.
|
||||||
|
*/
|
||||||
typedef struct MDB_val {
|
typedef struct MDB_val {
|
||||||
size_t mv_size; /**< size of the data item */
|
size_t mv_size; /**< size of the data item */
|
||||||
void *mv_data; /**< address of the data item */
|
void *mv_data; /**< address of the data item */
|
||||||
|
Loading…
Reference in New Issue
Block a user