IDList *idl;
char buf[20];
-#ifdef HAVE_BERKELEY_DB2
- Datum data;
-
ldbm_datum_init( key );
- ldbm_datum_init( data );
-#endif
Debug( LDAP_DEBUG_TRACE, "=> id2children_add( %lu, %lu )\n",
p ? p->e_id : 0, e->e_id, 0 );
Datum data;
IDList *idl;
-#ifdef HAVE_BERKELEY_DB2
- Datum k2;
-
ldbm_datum_init( data );
- ldbm_datum_init( k2 );
-#endif
/* Debug( LDAP_DEBUG_TRACE, "=> idl_fetch_one\n", 0, 0, 0 ); */
char *argv[ 4 ];
int i;
+#ifdef HAVE_BERKELEY_DB2
extern pthread_mutex_t dbEnvInit_mutex;
+#endif
/* allocate backend-specific stuff */
li = (struct ldbminfo *) ch_calloc( 1, sizeof(struct ldbminfo) );
pthread_cond_init( &li->li_dbcache[i].dbc_cv,
pthread_condattr_default );
}
+#ifdef HAVE_BERKELEY_DB2
pthread_mutex_init( &dbEnvInit_mutex, pthread_mutexattr_default );
+#endif
be->be_private = li;
}
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
+#endif
ldbm_datum_init( key );
ldbm_datum_init( last );
ldbm_datum_init( data );
-#endif
if ( argc < 2 || argc > 3 || ( argc == 3 && strcmp( argv[1], "-n" )
!= 0 )) {
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
+#endif
ldbm_datum_init( savekey );
ldbm_datum_init( key );
ldbm_datum_init( data );
ldbm_datum_init( last );
-#endif
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
while ( (i = getopt( argc, argv, "d:f:" )) != EOF ) {