From: Howard Chu Date: Sun, 5 Dec 2004 08:19:28 +0000 (+0000) Subject: More shutdown fixes X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76ad79b7d743d02cd0b7a7223a4f314a97928b0f;p=openldap More shutdown fixes --- diff --git a/servers/slapd/overlays/glue.c b/servers/slapd/overlays/glue.c index 3dee4ef293..07898ed12d 100644 --- a/servers/slapd/overlays/glue.c +++ b/servers/slapd/overlays/glue.c @@ -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; igi_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; }