mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 09:36:57 +02:00
panic vs. deadlock
This commit is contained in:
@@ -1033,9 +1033,8 @@ func (c *Cluster) processPodEvent(obj interface{}) error {
|
||||
}
|
||||
|
||||
c.podSubscribersMu.RLock()
|
||||
defer c.podSubscribersMu.RUnlock()
|
||||
|
||||
subscriber, ok := c.podSubscribers[spec.NamespacedName(event.PodName)]
|
||||
c.podSubscribersMu.RUnlock()
|
||||
if ok {
|
||||
subscriber <- event
|
||||
}
|
||||
|
||||
+1
-1
@@ -324,7 +324,7 @@ func testNil(values ...*int32) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// ToIntStr convert int to IntOrString type
|
||||
// ToIntStr converts int to IntOrString type
|
||||
func ToIntStr(val int) *intstr.IntOrString {
|
||||
b := intstr.FromInt(val)
|
||||
return &b
|
||||
|
||||
Reference in New Issue
Block a user