private database inherits monitoring from underlying one

This commit is contained in:
Pierangelo Masarati 2006-09-15 00:23:14 +00:00
parent c92571680d
commit 2b242dee14

View File

@ -2128,8 +2128,7 @@ pcache_db_config(
static int
pcache_db_init(
BackendDB *be
)
BackendDB *be )
{
slap_overinst *on = (slap_overinst *)be->bd_info;
cache_manager *cm;
@ -2171,8 +2170,7 @@ pcache_db_init(
static int
pcache_db_open(
BackendDB *be
)
BackendDB *be )
{
slap_overinst *on = (slap_overinst *)be->bd_info;
cache_manager *cm = on->on_bi.bi_private;
@ -2213,6 +2211,13 @@ pcache_db_open(
cm->db.be_acl = be->be_acl;
cm->db.be_dfltaccess = be->be_dfltaccess;
if ( SLAP_DBMONITORING( be ) ) {
SLAP_DBFLAGS( &cm->db ) |= SLAP_DBFLAG_MONITORING;
} else {
SLAP_DBFLAGS( &cm->db ) &= ~SLAP_DBFLAG_MONITORING;
}
rc = backend_startup_one( &cm->db );
/* There is no runqueue in TOOL mode */