mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#8117 fix INTEGERDUP compare
This commit is contained in:
parent
5cdde0c5b7
commit
ba45e0c05a
@ -7076,6 +7076,12 @@ mdb_xcursor_init1(MDB_cursor *mc, MDB_node *node)
|
||||
mx->mx_db.md_flags |= MDB_INTEGERKEY;
|
||||
}
|
||||
}
|
||||
#if UINT_MAX < SIZE_MAX
|
||||
if (mc->mc_dbx->md_dcmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t)) {
|
||||
mc->mc_dbx->md_dcmp = mdb_cmp_clong;
|
||||
mx->mx_dbx.md_cmp = mdb_cmp_clong;
|
||||
}
|
||||
#endif
|
||||
DPRINTF(("Sub-db -%u root page %"Z"u", mx->mx_cursor.mc_dbi,
|
||||
mx->mx_db.md_root));
|
||||
mx->mx_dbflag = DB_VALID|DB_DIRTY; /* DB_DIRTY guides mdb_cursor_touch */
|
||||
|
Loading…
Reference in New Issue
Block a user