From f5ce471ebbd5b3eb66396183f52b2615e4626bdc Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 7 Oct 2020 02:37:44 +0300 Subject: [PATCH] mdbx: fix minor copy&paste typo. Change-Id: I5a1be230d0ca92123006e709aaaf78496918c91a --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index ae2b8e0d..2070ec75 100644 --- a/src/core.c +++ b/src/core.c @@ -18521,7 +18521,7 @@ int mdbx_estimate_distance(const MDBX_cursor *first, const MDBX_cursor *last, return rc; if (unlikely(dr.diff == 0) && - F_ISSET(first->mc_db->md_flags & first->mc_db->md_flags, + F_ISSET(first->mc_db->md_flags & last->mc_db->md_flags, MDBX_DUPSORT | C_INITIALIZED)) { first = &first->mc_xcursor->mx_cursor; last = &last->mc_xcursor->mx_cursor;