[OCTRL-1082] fixed race conditions caused by repeated use of GetParent by justonedev1 · Pull Request #800 · AliceO2Group/Control
justonedev1
changed the title
[core] fixed race conditions caused by repeated use of GetParent
[OCTRL-1082] fixed race conditions caused by repeated use of GetParent
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Comment on lines -721 to +730
| t.mu.RLock() | ||
| defer t.mu.RUnlock() | ||
|
|
||
| if t == nil { | ||
| log.Warn("attempted to get properties of nil task") | ||
| return make(map[string]string) | ||
| } | ||
|
|
||
| t.mu.RLock() | ||
| defer t.mu.RUnlock() | ||
|
|
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters