~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/back-bdb/init.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* init.c - initialize bdb backend */
2
 
/* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/init.c,v 1.247.2.22 2009/06/19 21:53:42 quanah Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/init.c,v 1.247.2.23 2009/07/27 17:38:41 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 2000-2009 The OpenLDAP Foundation.
369
369
        }
370
370
#endif
371
371
 
372
 
        /* Default dncache to 2x entrycache */
373
 
        if ( bdb->bi_cache.c_maxsize && !bdb->bi_cache.c_eimax ) {
374
 
                bdb->bi_cache.c_eimax = bdb->bi_cache.c_maxsize * 2;
375
 
        }
376
 
 
377
 
        /* dncache must be >= entrycache */
378
 
        if ( bdb->bi_cache.c_eimax < bdb->bi_cache.c_maxsize ) {
 
372
        /* dncache defaults to 0 == unlimited
 
373
         * must be >= entrycache
 
374
         */
 
375
        if ( bdb->bi_cache.c_eimax && bdb->bi_cache.c_eimax < bdb->bi_cache.c_maxsize ) {
379
376
                bdb->bi_cache.c_eimax = bdb->bi_cache.c_maxsize;
380
377
        }
381
378