mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#3688 don't sort range IDLs!
This commit is contained in:
parent
145221472e
commit
080586f482
2 changed files with 5 additions and 2 deletions
|
|
@ -1033,7 +1033,7 @@ hdb_dn2idl(
|
|||
DBTzero(&cx.data);
|
||||
|
||||
hdb_dn2idl_internal(&cx);
|
||||
if ( !BDB_IDL_IS_ZERO( ids ))
|
||||
if ( !BDB_IDL_IS_ZERO( ids ) && !BDB_IDL_IS_RANGE( ids ))
|
||||
bdb_idl_sort( ids );
|
||||
|
||||
return cx.rc;
|
||||
|
|
|
|||
|
|
@ -1238,7 +1238,7 @@ int bdb_idl_append_one( ID *ids, ID id )
|
|||
}
|
||||
}
|
||||
ids[0]++;
|
||||
if ( ids[0] >= BDB_IDL_DB_MAX ) {
|
||||
if ( ids[0] >= BDB_IDL_UM_MAX ) {
|
||||
ids[0] = NOID;
|
||||
} else {
|
||||
ids[ids[0]] = id;
|
||||
|
|
@ -1325,6 +1325,9 @@ bdb_idl_sort( ID *ids )
|
|||
int i;
|
||||
ID temp;
|
||||
|
||||
if ( BDB_IDL_IS_RANGE( ids ))
|
||||
return;
|
||||
|
||||
for (i = ids[0] / 2; i >= 1; i--)
|
||||
siftDown(ids, i, ids[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue