Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuriwuyun committed Mar 8, 2024
1 parent a71d116 commit aea63ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions addons/mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ spec:
- bash
- -c
- |
mkdir -p /var/lib/mysql/{log,binlog,auditlog}
cp /usr/lib/mysql/plugin/ /var/lib/mysql/plugin -r
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog}
cp /usr/lib/mysql/plugin/ {{ .Values.dataMountPath }}/plugin -r
imagePullPolicy: Always
name: init-data
volumeMounts:
Expand Down
12 changes: 6 additions & 6 deletions addons/mysql/templates/clusterversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ spec:
- bash
- -c
- |
mv /var/lib/mysql/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf /var/lib/mysql/plugin
chown -R mysql:root /var/lib/mysql
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
chown -R mysql:root {{ .Values.dataMountPath }}
/scripts/docker-entrypoint.sh mysqld --server-id $(( ${KB_POD_NAME##*-} + 1)) \
--ignore-db-dir=lost+found \
--plugin-load-add=rpl_semi_sync_master=semisync_master.so \
Expand Down Expand Up @@ -68,9 +68,9 @@ spec:
- bash
- -c
- |
mv /var/lib/mysql/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf /var/lib/mysql/plugin
chown -R mysql:root /var/lib/mysql
mv {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
rm -rf {{ .Values.dataMountPath }}/plugin
chown -R mysql:root {{ .Values.dataMountPath }}
docker-entrypoint.sh mysqld --server-id $(( ${KB_POD_NAME##*-} + 1)) \
--plugin-load-add=rpl_semi_sync_source=semisync_source.so \
--plugin-load-add=rpl_semi_sync_replica=semisync_replica.so \
Expand Down

0 comments on commit aea63ae

Please sign in to comment.