2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Replace "master/slave" terms in code comments

Replace those terms with the preferred "primary/secondary" keywords.
This commit is contained in:
Matthijs Mekking
2021-10-05 11:07:44 +02:00
committed by Evan Hunt
parent f3d3a4ff6e
commit 71b92d4d19
23 changed files with 110 additions and 111 deletions

View File

@@ -374,16 +374,17 @@ checkqueryacl(ns_client_t *client, dns_acl_t *queryacl, dns_name_t *zonename,
/*%
* Override the default acl logging when checking whether a client
* can update the zone or whether we can forward the request to the
* master based on IP address.
* primary server based on IP address.
*
* 'message' contains the type of operation that is being attempted.
* 'slave' indicates if this is a slave zone. If 'acl' is NULL then
* log at debug=3.
* If the zone has no access controls configured ('acl' == NULL &&
* 'has_ssutable == ISC_FALS) log the attempt at info, otherwise
* at error.
*
* If the request was signed log that we received it.
* 'secondary' indicates whether this is a secondary zone.
*
* If the zone has no access controls configured ('acl' == NULL &&
* 'has_ssutable == false`), log the attempt at info, otherwise at error.
* If 'secondary' is true, log at debug=3.
*
* If the request was signed, log that we received it.
*/
static isc_result_t
checkupdateacl(ns_client_t *client, dns_acl_t *acl, const char *message,
@@ -1668,7 +1669,7 @@ ns_update_start(ns_client_t *client, isc_nmhandle_t *handle,
case dns_zone_dlz:
/*
* We can now fail due to a bad signature as we now know
* that we are the master.
* that we are the primary.
*/
if (sigresult != ISC_R_SUCCESS) {
FAIL(sigresult);
@@ -2905,7 +2906,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
unsigned int max = 0;
/*
* RFC1123 doesn't allow MF and MD in master zones.
* RFC1123 doesn't allow MF and MD in master files.
*/
if (rdata.type == dns_rdatatype_md ||
rdata.type == dns_rdatatype_mf) {
@@ -3388,7 +3389,7 @@ update_action(isc_task_t *task, isc_event_t *event) {
dns_zone_markdirty(zone);
/*
* Notify slaves of the change we just made.
* Notify secondaries of the change we just made.
*/
dns_zone_notify(zone);