From e61748780b8a548472991309e297735546fe3fa7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 13 Nov 2003 21:49:48 +0000 Subject: [PATCH] ITS#2816 init_module for dynamic HDB --- servers/slapd/back-bdb/init.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ); -- 2.39.5