From 926db32902597b96dbe72d2bffce37bd546154d3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 22 Dec 2015 18:30:41 +0000 Subject: [PATCH] mdbx: backport - MDB_RESERVE doc. Add mdb_put text to mdb_cursor_put description for people who fail to draw logical conclusions. Change-Id: I7d17178ad3b0d2ada721f3027af7e70f478c0da1 --- lmdb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lmdb.h b/lmdb.h index d3a265bf..091b9beb 100644 --- a/lmdb.h +++ b/lmdb.h @@ -1522,7 +1522,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