mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 19:02:57 +02:00
return idle status when worker has nothing to do
This commit is contained in:
@@ -173,7 +173,7 @@ func (c *Controller) GetWorkersCnt() uint32 {
|
||||
func (c *Controller) WorkerStatus(workerID uint32) (*spec.WorkerStatus, error) {
|
||||
obj, ok := c.curWorkerCluster.Load(workerID)
|
||||
if !ok || obj == nil {
|
||||
return nil, fmt.Errorf("worker has no status")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
cl, ok := obj.(*cluster.Cluster)
|
||||
|
||||
Reference in New Issue
Block a user