]> git.sur5r.net Git - openldap/commitdiff
ITS#2816 init_module for dynamic HDB
authorHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 21:49:48 +0000 (21:49 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2003 21:49:48 +0000 (21:49 +0000)
servers/slapd/back-bdb/init.c

index 77bb9e91cb7957a24c7e3e8dc2ba2ca9d01185fa..fe6bbdf2705cfa7f85466940222d2bf5aa6ebd3e 100644 (file)
@@ -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 );