]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8857 document mdb_cursor_del does not invalidate the cursor
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>
Tue, 15 May 2018 09:53:13 +0000 (10:53 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:20:57 +0000 (13:20 +0100)
libraries/liblmdb/lmdb.h

index f427ea58be422e6ddad5d912563cde9e77d410d9..57ad1496d27bcb349f5145766b6c8e4912ba8d7d 100644 (file)
@@ -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.