Skip to content

Commit

Permalink
fix map concurrent write issue (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuodenumL authored Jan 4, 2022
1 parent 8c8e655 commit 02d434e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cluster/calcium/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,10 @@ func (c *Calcium) doMakeWorkloadOptions(ctx context.Context, no int, msg *types.
config.Restart = entry.Restart
if entry.Log != nil {
config.LogType = entry.Log.Type
config.LogConfig = entry.Log.Config
config.LogConfig = map[string]string{}
for k, v := range entry.Log.Config {
config.LogConfig[k] = v
}
}
// name
suffix := utils.RandomString(6)
Expand Down

0 comments on commit 02d434e

Please sign in to comment.