mdbx: restore MDBX_SET behaviour.

Change-Id: I1ddab75fdeeff594bf4ccdb14c7ce0415feb28f8
This commit is contained in:
Leonid Yuriev 2018-09-16 17:49:56 +03:00
parent 0a6af9bca0
commit 49a3e04d92

View File

@ -7739,11 +7739,6 @@ int mdbx_cursor_get(MDBX_cursor *mc, MDBX_val *key, MDBX_val *data,
return MDBX_INCOMPATIBLE;
/* FALLTHRU */
case MDBX_SET:
#ifndef SLAPD_LMDB_LEGACY
if (op == MDBX_SET && unlikely(data != NULL))
return MDBX_EINVAL;
#endif /* SLAPD_LMDB_LEGACY */
/* FALLTHRU */
case MDBX_SET_KEY:
case MDBX_SET_RANGE:
if (unlikely(key == NULL))