From: Howard Chu Date: Tue, 25 Oct 2005 10:54:04 +0000 (+0000) Subject: Lower id2entry cache priority in tool mode X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~198 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f9965c32b9980c26f1fb2ae8f491083138b046b;p=openldap Lower id2entry cache priority in tool mode --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 36af08c8e5..a982d23bbd 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -426,6 +426,10 @@ bdb_db_open( BackendDB *be ) } if( i == BDB_ID2ENTRY ) { + if ( slapMode & SLAP_TOOL_MODE ) + db->bdi_db->mpf->set_priority( db->bdi_db->mpf, + DB_PRIORITY_VERY_LOW ); + rc = db->bdi_db->set_pagesize( db->bdi_db, BDB_ID2ENTRY_PAGESIZE ); if ( slapMode & SLAP_TOOL_READMAIN ) { @@ -482,13 +486,6 @@ bdb_db_open( BackendDB *be ) return rc; } -#if 0 - if( i == BDB_ID2ENTRY && ( slapMode & SLAP_TOOL_MODE )) { - db->bdi_db->mpf->set_priority( db->bdi_db->mpf, - DB_PRIORITY_VERY_LOW ); - } -#endif - flags &= ~(DB_CREATE | DB_RDONLY); db->bdi_name = bdbi_databases[i].name; bdb->bi_databases[i] = db;