mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 04:14:13 +08:00
mdbx: add comment for unsure_equal()
.
Change-Id: I0629b5cd4812415c3a240047ec4202f33dddd189
This commit is contained in:
parent
66df21ba78
commit
6ee62650af
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user