From 57fa57b1d1d07d4c58b9212160337c109ab17683 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 4 Jan 2007 10:56:18 +0000 Subject: [PATCH] Fix HDB - don't use IDL cache when it's not configured --- servers/slapd/back-bdb/dn2id.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index a1670944ba..c4f7cfac5e 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -1122,7 +1122,8 @@ hdb_dn2idl( cx.key.size = sizeof(ID)+1; *ptr = cx.prefix; cx.id = e->e_id; - bdb_idl_cache_put( cx.bdb, cx.db, &cx.key, cx.ids, cx.rc ); + if ( cx.bdb->bi_idl_cache_max_size ) + bdb_idl_cache_put( cx.bdb, cx.db, &cx.key, cx.ids, cx.rc ); } if ( cx.rc == DB_NOTFOUND ) -- 2.39.5