]> git.sur5r.net Git - openldap/commitdiff
don't leave attrs with no values 'round; fix description
authorPierangelo Masarati <ando@openldap.org>
Sun, 7 Jan 2007 18:53:09 +0000 (18:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 7 Jan 2007 18:53:09 +0000 (18:53 +0000)
servers/slapd/back-monitor/thread.c

index 51da57fa37c08e66ff789e116d0799aeb19627f0..387d71ead398c37388d9f75272c0ef52692be7fc 100644 (file)
@@ -85,7 +85,7 @@ static struct {
                BER_BVC("Queue of running threads - besides those handling operations"),
                BER_BVNULL,     LDAP_PVT_THREAD_POOL_PARAM_UNKNOWN,     MT_RUNQUEUE },
        { BER_BVC( "cn=Tasklist" ),
-               BER_BVC("List of standby threads - besides those handling operations"),
+               BER_BVC("List of running plus standby threads - besides those handling operations"),
                BER_BVNULL,     LDAP_PVT_THREAD_POOL_PARAM_UNKNOWN,     MT_TASKLIST },
 
        { BER_BVNULL }
@@ -278,6 +278,9 @@ monitor_subsys_thread_update(
                        if ( vals ) {
                                attr_merge_normalize( e, mi->mi_ad_monitoredInfo, vals, NULL );
                                ber_bvarray_free( vals );
+
+                       } else {
+                               attr_delete( &e->e_attrs, mi->mi_ad_monitoredInfo );
                        }
                        break;
 
@@ -307,6 +310,9 @@ monitor_subsys_thread_update(
                        if ( vals ) {
                                attr_merge_normalize( e, mi->mi_ad_monitoredInfo, vals, NULL );
                                ber_bvarray_free( vals );
+
+                       } else {
+                               attr_delete( &e->e_attrs, mi->mi_ad_monitoredInfo );
                        }
                        break;