mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:08:21 +08:00
mdbx: add SLAPD_LMDB_LEGACY option.
This commit is contained in:
parent
1fca3d4c93
commit
d299a2601d
@ -7714,8 +7714,10 @@ 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user