ITS#3688 don't sort range IDLs!

This commit is contained in:
Howard Chu 2005-04-27 17:29:30 +00:00
parent 145221472e
commit 080586f482
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -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]);