[Freeipa-devel] [PATCH 0083] Flush cache after creating a new forward zone

Adam Tkac atkac at redhat.com
Mon Oct 29 15:28:53 UTC 2012


On Fri, Oct 26, 2012 at 04:03:08PM +0200, Petr Spacek wrote:
> On 10/26/2012 03:55 PM, Martin Kosek wrote:
> >On 10/26/2012 03:53 PM, Petr Spacek wrote:
> >>Hello,
> >>
> >>     Flush cache after creating a new forward zone.
> >>
> >>     https://fedorahosted.org/bind-dyndb-ldap/ticket/97
> >>
> >
> >I guess the patch is missing :-)
> >
> >Martin
> >
> Hmm, apparently two-lines wasn't worth for Thunderbird to attach the file :-D

Ack

> From 72110d81b3c3325f9cb68ad2c345272f9a9e9cec Mon Sep 17 00:00:00 2001
> From: Petr Spacek <pspacek at redhat.com>
> Date: Fri, 26 Oct 2012 15:52:02 +0200
> Subject: [PATCH] Flush cache after creating a new forward zone.
> 
> https://fedorahosted.org/bind-dyndb-ldap/ticket/97
> 
> Signed-off-by: Petr Spacek <pspacek at redhat.com>
> ---
>  src/ldap_helper.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/ldap_helper.c b/src/ldap_helper.c
> index 19470d557afe5d44eba3d8b37502d296ccfd67b1..37281456bf136bc050828331383932bae7d67c81 100644
> --- a/src/ldap_helper.c
> +++ b/src/ldap_helper.c
> @@ -1120,6 +1120,8 @@ ldap_parse_zoneentry(ldap_entry_t *entry, ldap_instance_t *inst)
>  	 */
>  	result = configure_zone_forwarders(entry, inst, &name);
>  	if (result != ISC_R_DISABLED) {
> +		if (result == ISC_R_SUCCESS)
> +			result = dns_view_flushnode(inst->view, &name, ISC_TRUE);
>  		/* DO NOT CHANGE ANYTHING ELSE after forwarders are set up! */
>  		goto cleanup;
>  	}
> -- 
> 1.7.11.7
> 


-- 
Adam Tkac, Red Hat, Inc.




More information about the Freeipa-devel mailing list