From a3aa2b5a57f8b8ff97e34393de23dd4ca3c17c70 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 15 May 2018 10:53:13 +0100 Subject: [PATCH] mdbx-doc: import - mdb_cursor_del does not invalidate the cursor (ITS#8857). --- mdbx.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mdbx.h b/mdbx.h index 17272a5b..64aaeec8 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1461,6 +1461,9 @@ LIBMDBX_API int mdbx_cursor_put(MDBX_cursor *cursor, MDBX_val *key, /* 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 MDBX_NEXT + * can still be used on it. Both MDBX_NEXT and MDBX_GET_CURRENT will return + * the same record after this operation. * * [in] cursor A cursor handle returned by mdbx_cursor_open() * [in] flags Options for this operation. This parameter must be set to 0