Skip to content

Commit

Permalink
fix(syncer): failed to update my.cnf (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
runkecheng authored Jun 16, 2022
1 parent d5e5f2b commit b0717bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysqlcluster/syncer/mysql_cm.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func buildMysqlConf(c *mysqlcluster.MysqlCluster) (string, error) {
addKVConfigsToSection(sec, mysqlSSLConfigs)
}

for _, para := range c.Spec.MysqlOpts.MysqlConf {
if sec.HasKey(para) {
sec.Key(para).SetValue(c.Spec.MysqlOpts.MysqlConf[para])
for k, v := range c.Spec.MysqlOpts.MysqlConf {
if sec.HasKey(k) {
sec.Key(k).SetValue(v)
}
}

Expand Down

0 comments on commit b0717bf

Please sign in to comment.