diff options
author | Howard Chu <hyc@openldap.org> | 2015-12-22 18:30:41 +0000 |
---|---|---|
committer | Howard Chu <hyc@openldap.org> | 2015-12-22 18:30:41 +0000 |
commit | 825ab2ad52ffe5038ccda209aa05d9917915f6ff (patch) | |
tree | 1489d13ba262d93780df982fe6f4eb7fa3dc7032 | |
parent | 9d75a82ae10fdcee80b8b8e82c6ef9b6ab83dc47 (diff) | |
download | lmdb-825ab2ad52ffe5038ccda209aa05d9917915f6ff.tar.gz lmdb-825ab2ad52ffe5038ccda209aa05d9917915f6ff.tar.bz2 lmdb-825ab2ad52ffe5038ccda209aa05d9917915f6ff.zip |
MDB_RESERVE doc
Add mdb_put text to mdb_cursor_put description for people who
fail to draw logical conclusions.
-rw-r--r-- | libraries/liblmdb/lmdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index ff19c0a..afcfe88 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -1470,7 +1470,8 @@ int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data, * the database supports duplicates (#MDB_DUPSORT). * <li>#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. * <li>#MDB_APPEND - append the given key/data pair to the end of the |