mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Revert 1.91, breaks #5346. (ITS#5724)
This commit is contained in:
parent
4d1f13b332
commit
ca07957697
1 changed files with 8 additions and 11 deletions
|
|
@ -140,25 +140,22 @@ over_db_open(
|
|||
{
|
||||
slap_overinfo *oi = be->bd_info->bi_private;
|
||||
slap_overinst *on = oi->oi_list;
|
||||
BackendInfo *bi_orig = be->bd_info;
|
||||
BackendDB db = *be;
|
||||
int rc = 0;
|
||||
|
||||
be->be_flags |= SLAP_DBFLAG_OVERLAY;
|
||||
be->bd_info = oi->oi_orig;
|
||||
if ( be->bd_info->bi_db_open ) {
|
||||
rc = be->bd_info->bi_db_open( be, cr );
|
||||
db.be_flags |= SLAP_DBFLAG_OVERLAY;
|
||||
db.bd_info = oi->oi_orig;
|
||||
if ( db.bd_info->bi_db_open ) {
|
||||
rc = db.bd_info->bi_db_open( &db, cr );
|
||||
}
|
||||
|
||||
for (; on && rc == 0; on=on->on_next) {
|
||||
be->bd_info = &on->on_bi;
|
||||
if ( be->bd_info->bi_db_open ) {
|
||||
rc = be->bd_info->bi_db_open( be, cr );
|
||||
db.bd_info = &on->on_bi;
|
||||
if ( db.bd_info->bi_db_open ) {
|
||||
rc = db.bd_info->bi_db_open( &db, cr );
|
||||
}
|
||||
}
|
||||
|
||||
be->bd_info = bi_orig;
|
||||
be->be_flags ^= SLAP_DBFLAG_OVERLAY;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue