mdbx: minor fix mdbx_replace_ex().

Change-Id: I2e1f27b1d73b450643743cf9d4ad35d5cd4547de
This commit is contained in:
Leonid Yuriev 2020-08-29 15:12:13 +03:00
parent 317816d6c7
commit 12e19cedc0

View File

@ -18340,7 +18340,7 @@ int mdbx_replace_ex(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key,
if (unlikely(rc != MDBX_SUCCESS))
return rc;
if (unlikely(!key || !old_data || old_data == new_data || !preserver))
if (unlikely(!key || !old_data || old_data == new_data))
return MDBX_EINVAL;
if (unlikely(old_data->iov_base == NULL && old_data->iov_len))