From: Howard Chu Date: Thu, 15 Sep 2005 01:22:22 +0000 (+0000) Subject: ITS#4029 Fix misplaced lines in prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~424 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b641006cb62e9549b1e9bfd2ec3103eb2264008;p=openldap ITS#4029 Fix misplaced lines in prev commit --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index c9f93fe0a6..4d548b4fb6 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -951,10 +951,10 @@ hdb_dn2idl_internal( } saveit: + if ( !BDB_IDL_IS_RANGE( cx->tmp ) && cx->tmp[0] > 1 ) + bdb_idl_sort( cx->tmp ); if ( cx->bdb->bi_idl_cache_max_size ) { cx->key.data = &cx->id; - if ( !BDB_IDL_IS_RANGE( cx->tmp ) && cx->tmp[0] > 1 ) - bdb_idl_sort( cx->tmp ); bdb_idl_cache_put( cx->bdb, cx->db, &cx->key, cx->tmp, cx->rc ); } ;