X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Fback-ndb%2Finit.cpp;h=8af31c72503841d70402c8f6887ddf3facfd7043;hb=789dad4d0082c9b8fc2202541d68717cc8fd5e1d;hp=53307646671ec500b96c27571b40713821a50ce1;hpb=f6edefa25dd7cb4156c61bb8f7066c85365a5f39;p=openldap
diff --git a/servers/slapd/back-ndb/init.cpp b/servers/slapd/back-ndb/init.cpp
index 5330764667..8af31c7250 100644
--- a/servers/slapd/back-ndb/init.cpp
+++ b/servers/slapd/back-ndb/init.cpp
@@ -2,7 +2,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * 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; ini_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 */