From 12e19cedc0b6a20d272e195eb8d88bebca172275 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 29 Aug 2020 15:12:13 +0300 Subject: [PATCH] mdbx: minor fix mdbx_replace_ex(). Change-Id: I2e1f27b1d73b450643743cf9d4ad35d5cd4547de --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index f1d18895..6476a7a7 100644 --- a/src/core.c +++ b/src/core.c @@ -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))