Change secondary to replica and use primary as an adjective consistently

This commit is contained in:
Christopher De Vries
2020-08-14 08:04:50 -04:00
parent 044d11de32
commit 4bb76cd0fb
3 changed files with 30 additions and 30 deletions
@@ -9,8 +9,8 @@ data:
# Apply this config only on the primary.
[mysqld]
log-bin
secondary.cnf: |
# Apply this config only on secondaries.
replica.cnf: |
# Apply this config only on replicas.
[mysqld]
super-read-only
@@ -31,7 +31,7 @@ spec:
if [[ $ordinal -eq 0 ]]; then
cp /mnt/config-map/primary.cnf /mnt/conf.d/
else
cp /mnt/config-map/secondary.cnf /mnt/conf.d/
cp /mnt/config-map/replica.cnf /mnt/conf.d/
fi
volumeMounts:
- name: conf
@@ -108,7 +108,7 @@ spec:
# Determine binlog position of cloned data, if any.
if [[ -f xtrabackup_slave_info && "x$(<xtrabackup_slave_info)" != "x" ]]; then
# XtraBackup already generated a partial "CHANGE MASTER TO" query
# because we're cloning from an existing secondary. (Need to remove the tailing semicolon!)
# because we're cloning from an existing replica. (Need to remove the tailing semicolon!)
cat xtrabackup_slave_info | sed -E 's/;$//g' > change_master_to.sql.in
# Ignore xtrabackup_binlog_info in this case (it's useless).
rm -f xtrabackup_slave_info xtrabackup_binlog_info