mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
don't know exactly the reason, but here without this back-hdb suddenly starts crashings all times (since bdb_monitor_* stuff)
This commit is contained in:
parent
18450addda
commit
067d6904c2
@ -363,8 +363,10 @@ bdb_cf_gen(ConfigArgs *c)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BDB_CONFIG:
|
case BDB_CONFIG:
|
||||||
if (( slapMode&SLAP_SERVER_MODE ) && !( bdb->bi_flags&BDB_IS_OPEN )
|
if ( ( slapMode & SLAP_SERVER_MODE )
|
||||||
&& !bdb->bi_db_config ) {
|
&& !( bdb->bi_flags & BDB_IS_OPEN )
|
||||||
|
&& !bdb->bi_db_config )
|
||||||
|
{
|
||||||
char buf[SLAP_TEXT_BUFLEN];
|
char buf[SLAP_TEXT_BUFLEN];
|
||||||
FILE *f = fopen( bdb->bi_db_config_path, "r" );
|
FILE *f = fopen( bdb->bi_db_config_path, "r" );
|
||||||
struct berval bv;
|
struct berval bv;
|
||||||
|
@ -198,6 +198,8 @@ bdb_monitor_free(
|
|||||||
return SLAP_CB_CONTINUE;
|
return SLAP_CB_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define bdb_monitor_initialize BDB_SYMBOL(monitor_initialize)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call from within bdb_initialize()
|
* call from within bdb_initialize()
|
||||||
*/
|
*/
|
||||||
|
@ -429,6 +429,12 @@ int bdb_modify_internal(
|
|||||||
/*
|
/*
|
||||||
* monitor.c
|
* monitor.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define bdb_monitor_db_init BDB_SYMBOL(monitor_db_init)
|
||||||
|
#define bdb_monitor_db_open BDB_SYMBOL(monitor_db_open)
|
||||||
|
#define bdb_monitor_db_close BDB_SYMBOL(monitor_db_close)
|
||||||
|
#define bdb_monitor_db_destroy BDB_SYMBOL(monitor_db_destroy)
|
||||||
|
|
||||||
int bdb_monitor_db_init( BackendDB *be );
|
int bdb_monitor_db_init( BackendDB *be );
|
||||||
int bdb_monitor_db_open( BackendDB *be );
|
int bdb_monitor_db_open( BackendDB *be );
|
||||||
int bdb_monitor_db_close( BackendDB *be );
|
int bdb_monitor_db_close( BackendDB *be );
|
||||||
|
Loading…
Reference in New Issue
Block a user