mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 13:11:52 +02:00
Introduce changes from the PR #200 by @alexeyklyukin
This commit is contained in:
@@ -24,6 +24,7 @@ func (c *Cluster) Sync(newSpec *spec.Postgresql) (err error) {
|
||||
|
||||
defer func() {
|
||||
if err != nil {
|
||||
c.logger.Warningf("error while syncing cluster state: %v", err)
|
||||
c.setStatus(spec.ClusterStatusSyncFailed)
|
||||
} else if c.Status != spec.ClusterStatusRunning {
|
||||
c.setStatus(spec.ClusterStatusRunning)
|
||||
|
||||
Reference in New Issue
Block a user