Fix HDB - don't use IDL cache when it's not configured

This commit is contained in:
Howard Chu 2007-01-04 10:56:18 +00:00
parent e48f72c1b5
commit 57fa57b1d1

View File

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