Skip to content

Commit ac69474

Browse files
committed
MDB_RESERVE doc
Add mdb_put text to mdb_cursor_put description for people who fail to draw logical conclusions.
1 parent e8760b4 commit ac69474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/liblmdb/lmdb.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,8 @@ int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data,
14581458
* the database supports duplicates (#MDB_DUPSORT).
14591459
* <li>#MDB_RESERVE - reserve space for data of the given size, but
14601460
* don't copy the given data. Instead, return a pointer to the
1461-
* reserved space, which the caller can fill in later. This saves
1461+
* reserved space, which the caller can fill in later - before
1462+
* the next update operation or the transaction ends. This saves
14621463
* an extra memcpy if the data is being generated later. This flag
14631464
* must not be specified if the database was opened with #MDB_DUPSORT.
14641465
* <li>#MDB_APPEND - append the given key/data pair to the end of the

0 commit comments

Comments
 (0)