From 6ee62650af409f15f4729bcdab70730bd7bbfd39 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 30 Mar 2021 01:41:34 +0300 Subject: [PATCH] mdbx: add comment for `unsure_equal()`. Change-Id: I0629b5cd4812415c3a240047ec4202f33dddd189 --- src/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.c b/src/core.c index 6a97bd74..682749e2 100644 --- a/src/core.c +++ b/src/core.c @@ -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; }