Commit f01622d5 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

More for ITS#5173

parent 936bca44
......@@ -2647,7 +2647,11 @@ pc_ldadd( CfEntryInfo *p, Entry *e, ConfigArgs *ca )
on = (slap_overinst *)p->ce_bi;
cm = on->on_bi.bi_private;
ca->be = &cm->db;
ca->cleanup = pc_ldadd_cleanup;
/* Defer open if this is an LDAPadd */
if ( CONFIG_ONLINE_ADD( ca ))
ca->cleanup = pc_ldadd_cleanup;
else
cm->defer_db_open = 0;
ca->private = on;
return LDAP_SUCCESS;
}
......
......@@ -109,7 +109,11 @@ translucent_ldadd( CfEntryInfo *cei, Entry *e, ConfigArgs *ca )
ov = on->on_bi.bi_private;
ca->be = &ov->db;
ca->private = on;
ca->cleanup = translucent_ldadd_cleanup;
if ( CONFIG_ONLINE_ADD( ca ))
ca->cleanup = translucent_ldadd_cleanup;
else
ov->defer_db_open = 0;
return LDAP_SUCCESS;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment