]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ndb/init.cpp
ITS#6203 fix startup
[openldap] / servers / slapd / back-ndb / init.cpp
index 53307646671ec500b96c27571b40713821a50ce1..8af31c72503841d70402c8f6887ddf3facfd7043 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2008 The OpenLDAP Foundation.
+ * Copyright 2008-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -130,7 +130,7 @@ ndb_db_open( BackendDB *be, ConfigReply *cr )
                }
        }
        for ( i=0; i<ni->ni_nconns; i++ ) {
-               rc = ni->ni_cluster[i]->wait_until_ready( 30, 0 );
+               rc = ni->ni_cluster[i]->wait_until_ready( 30, 30 );
                if ( rc ) {
                        snprintf( cr->msg, sizeof( cr->msg ),
                                "ndb_db_open: ni_cluster[%d]->wait failed (%d)",
@@ -443,6 +443,8 @@ ndb_back_initialize(
 #if    SLAPD_NDB == SLAPD_MOD_DYNAMIC
 
 /* conditionally define the init_module() function */
+extern "C" { int init_module( int argc, char *argv[] ); }
+
 SLAP_BACKEND_INIT_MODULE( ndb )
 
 #endif /* SLAPD_NDB == SLAPD_MOD_DYNAMIC */