From 9b641006cb62e9549b1e9bfd2ec3103eb2264008 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 15 Sep 2005 01:22:22 +0000 Subject: [PATCH] ITS#4029 Fix misplaced lines in prev commit --- servers/slapd/back-bdb/dn2id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } ; -- 2.39.5