mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-01 11:29:27 -05:00
ITS#2816 init_module for dynamic HDB
This commit is contained in:
parent
f4649fbde3
commit
e61748780b
1 changed files with 6 additions and 1 deletions
|
|
@ -554,12 +554,17 @@ bdb_db_destroy( BackendDB *be )
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef SLAPD_BDB_DYNAMIC
|
||||
#if (defined(SLAPD_BDB_DYNAMIC) && !defined(BDB_HIER)) || \
|
||||
(defined(SLAPD_HDB_DYNAMIC) && defined(BDB_HIER))
|
||||
int init_module( int argc, char *argv[] ) {
|
||||
BackendInfo bi;
|
||||
|
||||
memset( &bi, '\0', sizeof(bi) );
|
||||
#ifdef BDB_HIER
|
||||
bi.bi_type = "hdb";
|
||||
#else
|
||||
bi.bi_type = "bdb";
|
||||
#endif
|
||||
bi.bi_init = bdb_initialize;
|
||||
|
||||
backend_add( &bi );
|
||||
|
|
|
|||
Loading…
Reference in a new issue