]> git.sur5r.net Git - openldap/commitdiff
use SLAP_DBFLAGS instead of be->be_flags
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 23:42:59 +0000 (23:42 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 23:42:59 +0000 (23:42 +0000)
servers/slapd/back-ldap/init.c
servers/slapd/back-monitor/init.c
servers/slapd/config.c

index cd5466122ab8ab3914e496225cc1d2044e86c409..e9a671907974b6310e4c8bfdd51e3cb4d0adc749 100644 (file)
@@ -146,7 +146,7 @@ ldap_back_db_init(
 
        li->be = be;
        be->be_private = li;
-       be->be_flags |= SLAP_BFLAG_NOLASTMOD;
+       SLAP_DBFLAGS(be) |= SLAP_BFLAG_NOLASTMOD;
 
        return 0;
 }
index f8d2815066bb7da236466ab790ae4c7043346f71..92e90f7880f1e96f2cebc3130de339cf39987743 100644 (file)
@@ -251,7 +251,7 @@ monitor_back_db_init(
        be_monitor = be;
 
        /* indicate system schema supported */
-       be->be_flags |= SLAP_BFLAG_MONITOR;
+       SLAP_DBFLAGS(be) |= SLAP_BFLAG_MONITOR;
 
        dn.bv_val = SLAPD_MONITOR_DN;
        dn.bv_len = sizeof( SLAPD_MONITOR_DN ) - 1;
index 3770917cce4ee08c2b6092f8db67134f43da9204..2890a6425a2e9f33fe2d59f241a038f0b368507d 100644 (file)
@@ -960,7 +960,7 @@ read_config( const char *fname, int depth )
                                return 1;
 
                        } else {
-                               be->be_flags |= SLAP_DBFLAG_GLUE_SUBORDINATE;
+                               SLAP_DBFLAGS(be) |= SLAP_DBFLAG_GLUE_SUBORDINATE;
                                num_subordinates++;
                        }
 
@@ -2184,13 +2184,13 @@ read_config( const char *fname, int depth )
                        }
                        if ( strcasecmp( cargv[1], "on" ) == 0 ) {
                                if ( be ) {
-                                       be->be_flags &= ~SLAP_DBFLAG_NOLASTMOD;
+                                       SLAP_DBFALGS(be) &= ~SLAP_DBFLAG_NOLASTMOD;
                                } else {
                                        lastmod = 1;
                                }
                        } else {
                                if ( be ) {
-                                       be->be_flags |= SLAP_DBFLAG_NOLASTMOD;
+                                       SLAP_DBFALGS(be) |= SLAP_DBFLAG_NOLASTMOD;
                                } else {
                                        lastmod = 0;
                                }
@@ -2941,7 +2941,7 @@ add_syncrepl(
                        si->si_provideruri == NULL ? "(null)" : si->si_provideruri, 0, 0 );
 #endif
                if ( !si->si_schemachecking ) {
-                       be->be_flags |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
+                       SLAP_DBFLAGS(be) |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
                }
                si->si_be = be;
                LDAP_STAILQ_INSERT_TAIL( &be->be_syncinfo, si, si_next );