mirror of
https://github.com/datarhei/core.git
synced 2025-10-26 09:20:33 +08:00
Fix cluster process update on metadata change
This commit is contained in:
@@ -1175,16 +1175,16 @@ func (r *restream) UpdateProcess(id app.ProcessID, config *app.Config) error {
|
||||
return ErrUnknownProcess
|
||||
}
|
||||
|
||||
// If the new config has the same hash as the current config, do nothing.
|
||||
if task.process.Config.Equal(config) {
|
||||
return nil
|
||||
}
|
||||
|
||||
t, err := r.createTask(config)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// If the new config has the same hash as the current config, do nothing.
|
||||
if task.config.Equal(t.config) {
|
||||
return nil
|
||||
}
|
||||
|
||||
tid := t.ID()
|
||||
|
||||
if !tid.Equal(id) {
|
||||
|
||||
Reference in New Issue
Block a user