From: Howard Chu Date: Thu, 13 Nov 2003 21:49:48 +0000 (+0000) Subject: ITS#2816 init_module for dynamic HDB X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~447 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e61748780b8a548472991309e297735546fe3fa7;p=openldap ITS#2816 init_module for dynamic HDB --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 77bb9e91cb..fe6bbdf270 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -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 );