From: Pierangelo Masarati Date: Fri, 15 Sep 2006 00:23:14 +0000 (+0000) Subject: private database inherits monitoring from underlying one X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b242dee14c355091c45cafacdb8f5cfb5ddce4e;p=openldap private database inherits monitoring from underlying one --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index ec2d97910a..7176b421b1 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -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 */