Commit e6174878 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2816 init_module for dynamic HDB

parent f4649fbd
...@@ -554,12 +554,17 @@ bdb_db_destroy( BackendDB *be ) ...@@ -554,12 +554,17 @@ bdb_db_destroy( BackendDB *be )
return 0; 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[] ) { int init_module( int argc, char *argv[] ) {
BackendInfo bi; BackendInfo bi;
memset( &bi, '\0', sizeof(bi) ); memset( &bi, '\0', sizeof(bi) );
#ifdef BDB_HIER
bi.bi_type = "hdb";
#else
bi.bi_type = "bdb"; bi.bi_type = "bdb";
#endif
bi.bi_init = bdb_initialize; bi.bi_init = bdb_initialize;
backend_add( &bi ); backend_add( &bi );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment