mdbx: fix mdbx_replace().

Change-Id: I2af00f101017795ca2b967479f86e5ea7e8ad37b
This commit is contained in:
Leonid Yuriev 2018-09-16 17:53:35 +03:00
parent 5cc4bec7b7
commit ff336fa65e

View File

@ -12853,7 +12853,7 @@ int mdbx_replace(MDBX_txn *txn, MDBX_dbi dbi, MDBX_val *key, MDBX_val *new_data,
rc = mdbx_cursor_get(&cx.outer, &present_key, &present_data, MDBX_SET_KEY);
if (unlikely(rc != MDBX_SUCCESS)) {
old_data->iov_base = NULL;
old_data->iov_len = rc;
old_data->iov_len = 0;
if (rc != MDBX_NOTFOUND || (flags & MDBX_CURRENT))
goto bailout;
} else if (flags & MDBX_NOOVERWRITE) {