mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: restore MDBX_SET behaviour.
Change-Id: I1ddab75fdeeff594bf4ccdb14c7ce0415feb28f8
This commit is contained in:
parent
0a6af9bca0
commit
49a3e04d92
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user