mdbx: add comment for unsure_equal().

Change-Id: I0629b5cd4812415c3a240047ec4202f33dddd189
This commit is contained in:
Leonid Yuriev 2021-03-30 01:41:34 +03:00
parent 66df21ba78
commit 6ee62650af

View File

@ -12481,6 +12481,8 @@ static int __hot cmp_lenfast(const MDBX_val *a, const MDBX_val *b) {
static bool unsure_equal(MDBX_cmp_func cmp, const MDBX_val *a,
const MDBX_val *b) {
/* checking for the use of a known good comparator
* or/otherwise for a full byte-to-byte match */
return cmp == cmp_lenfast || cmp == cmp_lexical || cmp == cmp_reverse ||
cmp == cmp_int_unaligned || cmp_lenfast(a, b) == 0;
}