From 2b242dee14c355091c45cafacdb8f5cfb5ddce4e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 15 Sep 2006 00:23:14 +0000 Subject: [PATCH] private database inherits monitoring from underlying one --- servers/slapd/overlays/pcache.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 */ -- 2.39.5