mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use SLAP_DBFLAGS instead of be->be_flags
This commit is contained in:
parent
313821118e
commit
9a64fdb991
@ -146,7 +146,7 @@ ldap_back_db_init(
|
|||||||
|
|
||||||
li->be = be;
|
li->be = be;
|
||||||
be->be_private = li;
|
be->be_private = li;
|
||||||
be->be_flags |= SLAP_BFLAG_NOLASTMOD;
|
SLAP_DBFLAGS(be) |= SLAP_BFLAG_NOLASTMOD;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ monitor_back_db_init(
|
|||||||
be_monitor = be;
|
be_monitor = be;
|
||||||
|
|
||||||
/* indicate system schema supported */
|
/* indicate system schema supported */
|
||||||
be->be_flags |= SLAP_BFLAG_MONITOR;
|
SLAP_DBFLAGS(be) |= SLAP_BFLAG_MONITOR;
|
||||||
|
|
||||||
dn.bv_val = SLAPD_MONITOR_DN;
|
dn.bv_val = SLAPD_MONITOR_DN;
|
||||||
dn.bv_len = sizeof( SLAPD_MONITOR_DN ) - 1;
|
dn.bv_len = sizeof( SLAPD_MONITOR_DN ) - 1;
|
||||||
|
@ -960,7 +960,7 @@ read_config( const char *fname, int depth )
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
be->be_flags |= SLAP_DBFLAG_GLUE_SUBORDINATE;
|
SLAP_DBFLAGS(be) |= SLAP_DBFLAG_GLUE_SUBORDINATE;
|
||||||
num_subordinates++;
|
num_subordinates++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2184,13 +2184,13 @@ read_config( const char *fname, int depth )
|
|||||||
}
|
}
|
||||||
if ( strcasecmp( cargv[1], "on" ) == 0 ) {
|
if ( strcasecmp( cargv[1], "on" ) == 0 ) {
|
||||||
if ( be ) {
|
if ( be ) {
|
||||||
be->be_flags &= ~SLAP_DBFLAG_NOLASTMOD;
|
SLAP_DBFALGS(be) &= ~SLAP_DBFLAG_NOLASTMOD;
|
||||||
} else {
|
} else {
|
||||||
lastmod = 1;
|
lastmod = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( be ) {
|
if ( be ) {
|
||||||
be->be_flags |= SLAP_DBFLAG_NOLASTMOD;
|
SLAP_DBFALGS(be) |= SLAP_DBFLAG_NOLASTMOD;
|
||||||
} else {
|
} else {
|
||||||
lastmod = 0;
|
lastmod = 0;
|
||||||
}
|
}
|
||||||
@ -2941,7 +2941,7 @@ add_syncrepl(
|
|||||||
si->si_provideruri == NULL ? "(null)" : si->si_provideruri, 0, 0 );
|
si->si_provideruri == NULL ? "(null)" : si->si_provideruri, 0, 0 );
|
||||||
#endif
|
#endif
|
||||||
if ( !si->si_schemachecking ) {
|
if ( !si->si_schemachecking ) {
|
||||||
be->be_flags |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
|
SLAP_DBFLAGS(be) |= SLAP_DBFLAG_NO_SCHEMA_CHECK;
|
||||||
}
|
}
|
||||||
si->si_be = be;
|
si->si_be = be;
|
||||||
LDAP_STAILQ_INSERT_TAIL( &be->be_syncinfo, si, si_next );
|
LDAP_STAILQ_INSERT_TAIL( &be->be_syncinfo, si, si_next );
|
||||||
|
Loading…
Reference in New Issue
Block a user