More for prev commit - fill in other opattrs when creating stub

This commit is contained in:
Howard Chu 2009-03-07 02:46:10 +00:00
parent b88e792a7f
commit df64b0573c

View File

@ -538,6 +538,8 @@ shm_retry:
} }
if ( !e ) { if ( !e ) {
struct berval gluebv = BER_BVC("glue"); struct berval gluebv = BER_BVC("glue");
Operation op = {0};
Opheader ohdr = {0};
e = entry_alloc(); e = entry_alloc();
e->e_id = 0; e->e_id = 0;
ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv ); ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv );
@ -546,6 +548,12 @@ shm_retry:
&gluebv, NULL ); &gluebv, NULL );
attr_merge_one( e, slap_schema.si_ad_structuralObjectClass, attr_merge_one( e, slap_schema.si_ad_structuralObjectClass,
&gluebv, NULL ); &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_ocflags = SLAP_OC_GLUE|SLAP_OC__END;
e->e_private = &bdb->bi_cache.c_dntree; e->e_private = &bdb->bi_cache.c_dntree;