]> git.sur5r.net Git - openldap/commitdiff
required by global overlay write funcs...
authorPierangelo Masarati <ando@openldap.org>
Sat, 11 Dec 2004 12:53:47 +0000 (12:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 11 Dec 2004 12:53:47 +0000 (12:53 +0000)
servers/slapd/ctxcsn.c
servers/slapd/frontend.c

index 97572d32bf17ac7b5bf08b447a8502826f7ef5aa..35e474b26986bb644f54c4b9cdc21df62325042c 100644 (file)
@@ -87,6 +87,8 @@ slap_graduate_commit_csn( Operation *op )
        if ( op == NULL ) return;
        if ( op->o_bd == NULL ) return;
 
+       assert( op->o_bd->be_pcl_mutexp != NULL );
+
        ldap_pvt_thread_mutex_lock( op->o_bd->be_pcl_mutexp );
 
        LDAP_TAILQ_FOREACH( csne, op->o_bd->be_pending_csn_list, ce_csn_link ) {
index c3638dbd2e984b51a5ee522254e42ae66c98218d..00c8e962e853246352d1268394d3e8b4b5edc3c7 100644 (file)
@@ -65,6 +65,12 @@ frontend_init( void )
        frontendDB->be_def_limit.lms_s_pr_hide = 0;                     /* don't hide number of entries left */
        frontendDB->be_def_limit.lms_s_pr_total = 0;                    /* number of total entries returned by pagedResults equal to hard limit */
 
+       /* FIXME: do we need this? */
+       frontendDB->be_pcl_mutexp = &frontendDB->be_pcl_mutex;
+       ldap_pvt_thread_mutex_init( frontendDB->be_pcl_mutexp );
+
+       LDAP_STAILQ_INIT( &frontendDB->be_syncinfo );
+
        /* suffix */
        frontendDB->be_suffix = ch_calloc( 2, sizeof( struct berval ) );
        ber_str2bv( "", 0, 1, &frontendDB->be_suffix[0] );
@@ -93,6 +99,7 @@ frontend_init( void )
        frontendDB->bd_info->bi_op_search = fe_op_search;
        frontendDB->bd_info->bi_extended = fe_extended;
 
-       return 0;
+       /* FIXME: is this too early? */
+       return backend_startup_one( frontendDB );
 }