- e_tmp = NULL;
-
- /*
- * Entries
- */
- snprintf( buf, sizeof( buf ),
- "dn: cn=Entries,%s\n"
- SLAPD_MONITOR_OBJECTCLASSES
- "cn: Entries\n",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_dn.bv_val );
-
- e = str2entry( buf );
- if ( e == NULL ) {
-#ifdef NEW_LOGGING
- LDAP_LOG( OPERATION, CRIT,
- "monitor_subsys_sent_init: "
- "unable to create entry 'cn=Entries,%s'\n",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_ndn.bv_val, 0, 0 );
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor_subsys_sent_init: "
- "unable to create entry 'cn=Entries,%s'\n%s%s",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_ndn.bv_val,
- "", "" );
-#endif
- return( -1 );
- }
-
- bv[1].bv_val = NULL;
- bv[0].bv_val = "0";
- bv[0].bv_len = 1;
- attr_merge( e, monitor_ad_desc, bv );
-
- mp = ( struct monitorentrypriv * )ch_calloc( sizeof( struct monitorentrypriv ), 1 );
- e->e_private = ( void * )mp;
- mp->mp_next = e_tmp;
- mp->mp_children = NULL;
- mp->mp_info = &monitor_subsys[SLAPD_MONITOR_SENT];
- mp->mp_flags = monitor_subsys[SLAPD_MONITOR_SENT].mss_flags \
- | MONITOR_F_SUB | MONITOR_F_PERSISTENT;
-
- if ( monitor_cache_add( mi, e ) ) {
-#ifdef NEW_LOGGING
- LDAP_LOG( OPERATION, CRIT,
- "monitor_subsys_sent_init: "
- "unable to add entry 'cn=Entries,%s'\n",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_ndn.bv_val, 0, 0 );
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor_subsys_sent_init: "
- "unable to add entry 'cn=Entries,%s'\n%s%s",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_ndn.bv_val,
- "", "" );
-#endif
- return( -1 );
- }
-
- e_tmp = e;
-
- /*
- * Referrals
- */
- snprintf( buf, sizeof( buf ),
- "dn: cn=Referrals,%s\n"
- SLAPD_MONITOR_OBJECTCLASSES
- "cn: Referrals\n",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_dn.bv_val );
-
- e = str2entry( buf );
- if ( e == NULL ) {
-#ifdef NEW_LOGGING
- LDAP_LOG( OPERATION, CRIT,
- "monitor_subsys_sent_init: "
- "unable to create entry 'cn=Referrals,%s'\n",
- monitor_subsys[SLAPD_MONITOR_SENT].mss_ndn.bv_val, 0, 0 );
-#else