mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
More for prev commit - fill in other opattrs when creating stub
This commit is contained in:
parent
b88e792a7f
commit
df64b0573c
@ -538,6 +538,8 @@ shm_retry:
|
||||
}
|
||||
if ( !e ) {
|
||||
struct berval gluebv = BER_BVC("glue");
|
||||
Operation op = {0};
|
||||
Opheader ohdr = {0};
|
||||
e = entry_alloc();
|
||||
e->e_id = 0;
|
||||
ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv );
|
||||
@ -546,6 +548,12 @@ shm_retry:
|
||||
&gluebv, NULL );
|
||||
attr_merge_one( e, slap_schema.si_ad_structuralObjectClass,
|
||||
&gluebv, NULL );
|
||||
op.o_hdr = &ohdr;
|
||||
op.o_bd = be;
|
||||
op.ora_e = e;
|
||||
op.o_dn = be->be_rootdn;
|
||||
op.o_ndn = be->be_rootndn;
|
||||
slap_add_opattrs( &op, NULL, NULL, 0, 0 );
|
||||
}
|
||||
e->e_ocflags = SLAP_OC_GLUE|SLAP_OC__END;
|
||||
e->e_private = &bdb->bi_cache.c_dntree;
|
||||
|
Loading…
Reference in New Issue
Block a user