]> git.sur5r.net Git - openldap/commitdiff
More shutdown fixes
authorHoward Chu <hyc@openldap.org>
Sun, 5 Dec 2004 08:19:28 +0000 (08:19 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 5 Dec 2004 08:19:28 +0000 (08:19 +0000)
servers/slapd/overlays/glue.c

index 3dee4ef293c782c3cbba38688eafd1b86fb50d98..07898ed12d73d462f8d95a1f60da53287333fe71 100644 (file)
@@ -604,12 +604,17 @@ glue_tool_sync (
 {
        slap_overinst   *on = glue_tool_inst( b0->bd_info );
        glueinfo                *gi = on->on_bi.bi_private;
+       BackendInfo             *bi = b0->bd_info;
        int i;
 
        /* just sync everyone */
        for (i = 0; i<gi->gi_nodes; i++)
                if (gi->gi_n[i].gn_be->be_sync)
                        gi->gi_n[i].gn_be->be_sync (gi->gi_n[i].gn_be);
+       b0->bd_info = on->on_info->oi_orig;
+       if ( b0->be_sync )
+               b0->be_sync( b0 );
+       b0->bd_info = bi;
        return 0;
 }