]> git.sur5r.net Git - openldap/commitdiff
Lower id2entry cache priority in tool mode
authorHoward Chu <hyc@openldap.org>
Tue, 25 Oct 2005 10:54:04 +0000 (10:54 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 25 Oct 2005 10:54:04 +0000 (10:54 +0000)
servers/slapd/back-bdb/init.c

index 36af08c8e5d03e6fe3e42ff3949172c949718b4b..a982d23bbdbaf90b759e74b68a2aae5c8f34ec4b 100644 (file)
@@ -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;