From: Howard Chu Date: Tue, 22 Dec 2015 18:30:41 +0000 (+0000) Subject: MDB_RESERVE doc X-Git-Tag: LMDB_0.9.18~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac6947401ba290f7e8c4dcf1d522505ef986195f;p=openldap MDB_RESERVE doc Add mdb_put text to mdb_cursor_put description for people who fail to draw logical conclusions. --- diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 3ecdc1063c..8323af5ec0 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -1458,7 +1458,8 @@ int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data, * the database supports duplicates (#MDB_DUPSORT). *
  • #MDB_RESERVE - reserve space for data of the given size, but * don't copy the given data. Instead, return a pointer to the - * reserved space, which the caller can fill in later. This saves + * reserved space, which the caller can fill in later - before + * the next update operation or the transaction ends. This saves * an extra memcpy if the data is being generated later. This flag * must not be specified if the database was opened with #MDB_DUPSORT. *
  • #MDB_APPEND - append the given key/data pair to the end of the