mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
Revert "ITS#8117 cleanup prev commit"
This reverts commitce7ba0ceb6. Revert "ITS#8117 fix INTEGERDUP compare" This reverts commited13d4aa59.
This commit is contained in:
parent
ce7ba0ceb6
commit
3d2202f31c
1 changed files with 4 additions and 6 deletions
|
|
@ -7194,15 +7194,13 @@ 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 */
|
||||
#if UINT_MAX < SIZE_MAX
|
||||
if (mx->mx_dbx.md_cmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t))
|
||||
mx->mx_dbx.md_cmp = mdb_cmp_clong;
|
||||
#endif
|
||||
}
|
||||
|
||||
/** Initialize a cursor for a given transaction and database. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue