]> git.sur5r.net Git - openldap/commitdiff
Use SLAP_MONITOR(be) to check flag
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 20:24:18 +0000 (20:24 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 20:24:18 +0000 (20:24 +0000)
servers/slapd/back-monitor/database.c
servers/slapd/root_dse.c

index 2ca220dc631f6abe9b2f61356ffac7da81462fcc..7191e5479b43efefe69d745a31faafa5d8bdc504 100644 (file)
@@ -126,7 +126,7 @@ monitor_subsys_database_init(
                        return( -1 );
                }
                
-               if ( be->be_flags & SLAP_BFLAG_MONITOR ) {
+               if ( SLAP_MONITOR(be) ) {
                        attr_merge( e, slap_schema.si_ad_monitorContext,
                                        be->be_suffix, be->be_nsuffix );
                        attr_merge( e_database, slap_schema.si_ad_monitorContext,
index d5ef3f54d46ee72962d9490dc10776b87f69a216..8d8d34d6979a0009a09c45631d840bc8412e918f 100644 (file)
@@ -124,7 +124,7 @@ root_dse_info(
                        /* no suffix! */
                        continue;
                }
-               if ( backends[i].be_flags & SLAP_BFLAG_MONITOR ) {
+               if ( SLAP_MONITOR( backends[i].be_flags )) {
                        vals[0] = backends[i].be_suffix[0];
                        nvals[0] = backends[i].be_nsuffix[0];
                        if( attr_merge( e, ad_monitorContext, vals, nvals ) ) {