mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: setup mdbx_cmp_memn() as data-comparator for safety.
This commit is contained in:
parent
e3ff19a722
commit
30b084724a
@ -10909,7 +10909,7 @@ static MDBX_cmp_func *mdbx_default_keycmp(unsigned flags) {
|
|||||||
|
|
||||||
static MDBX_cmp_func *mdbx_default_datacmp(unsigned flags) {
|
static MDBX_cmp_func *mdbx_default_datacmp(unsigned flags) {
|
||||||
return !(flags & MDBX_DUPSORT)
|
return !(flags & MDBX_DUPSORT)
|
||||||
? 0
|
? mdbx_cmp_memn
|
||||||
: ((flags & MDBX_INTEGERDUP)
|
: ((flags & MDBX_INTEGERDUP)
|
||||||
? mdbx_cmp_int_ua
|
? mdbx_cmp_int_ua
|
||||||
: ((flags & MDBX_REVERSEDUP) ? mdbx_cmp_memnr
|
: ((flags & MDBX_REVERSEDUP) ? mdbx_cmp_memnr
|
||||||
|
Loading…
Reference in New Issue
Block a user