]> git.sur5r.net Git - openldap/commitdiff
More for prev commit - fill in other opattrs when creating stub
authorHoward Chu <hyc@openldap.org>
Sat, 7 Mar 2009 02:46:10 +0000 (02:46 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 7 Mar 2009 02:46:10 +0000 (02:46 +0000)
servers/slapd/back-bdb/init.c

index 885528563f23d1564c00d70bc7f2389a3b09ef3e..02ab2271de60d9804a9b80f1e5287096541ada8d 100644 (file)
@@ -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;