Commit e4e183af authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

the zone object's master and also-notify lists grew longer with each reload

parent ae72c54e
69. [bug] The zone object's master and also-notify lists grew
longer with each server reload.
68. [func] Partial support for SIG(0) on incoming messages.
67. [performance] Allow use of alternate (compile-time supplied)
......
......@@ -177,6 +177,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
else
dns_zone_setoption(zone, DNS_ZONE_O_NOTIFY, ISC_TRUE);
dns_zone_clearnotify(zone);
result = dns_c_zone_getalsonotify(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -185,8 +186,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearnotify(zone);
}
result = dns_c_zone_getmaxtranstimeout(czone, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
......@@ -256,6 +256,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -264,8 +265,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
......@@ -348,6 +348,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -356,8 +357,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
......
......@@ -177,6 +177,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
else
dns_zone_setoption(zone, DNS_ZONE_O_NOTIFY, ISC_TRUE);
dns_zone_clearnotify(zone);
result = dns_c_zone_getalsonotify(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -185,8 +186,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearnotify(zone);
}
result = dns_c_zone_getmaxtranstimeout(czone, &maxxfr);
if (result != ISC_R_SUCCESS && cview != NULL)
......@@ -256,6 +256,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -264,8 +265,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
......@@ -348,6 +348,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
port = 53;
dns_zone_setmasterport(zone, port);
dns_zone_clearmasters(zone);
result = dns_c_zone_getmasterips(czone, &iplist);
if (result == ISC_R_SUCCESS) {
for (i = 0; i < iplist->nextidx; i++) {
......@@ -356,8 +357,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
if (result != ISC_R_SUCCESS)
return (result);
}
} else
dns_zone_clearmasters(zone);
}
result = dns_c_zone_getmaxtranstimein(czone, &maxxfr);
if (result != ISC_R_SUCCESS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment