mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
private database inherits monitoring from underlying one
This commit is contained in:
parent
c92571680d
commit
2b242dee14
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user