]> git.sur5r.net Git - openldap/commitdiff
ITS#4029 Fix misplaced lines in prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 15 Sep 2005 01:22:22 +0000 (01:22 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Sep 2005 01:22:22 +0000 (01:22 +0000)
servers/slapd/back-bdb/dn2id.c

index c9f93fe0a6437abf8f1ad17e735c39bf43b813dd..4d548b4fb68b4fdb55f528d5922ebf7bdae288b8 100644 (file)
@@ -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 );
        }
        ;