From: moneromooo-monero Date: Tue, 15 May 2018 09:53:13 +0000 (+0100) Subject: ITS#8857 document mdb_cursor_del does not invalidate the cursor X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efa54e5f3e5fe08c674b0591910c434d542d0ec;p=thirdparty%2Fopenldap.git ITS#8857 document mdb_cursor_del does not invalidate the cursor --- diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index f427ea58be..57ad1496d2 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -1602,6 +1602,10 @@ int mdb_cursor_put(MDB_cursor *cursor, MDB_val *key, MDB_val *data, /** @brief Delete current key/data pair * * This function deletes the key/data pair to which the cursor refers. + * This does not invalidate the cursor, so operations such as MDB_NEXT + * can still be used on it. + * Both MDB_NEXT and MDB_GET_CURRENT will return the same record after + * this operation. * @param[in] cursor A cursor handle returned by #mdb_cursor_open() * @param[in] flags Options for this operation. This parameter * must be set to 0 or one of the values described here.