mdbx: add SLAPD_LMDB_LEGACY option.

This commit is contained in:
Leo Yuriev 2018-09-14 15:57:44 +03:00
parent 1fca3d4c93
commit d299a2601d

View File

@ -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: