Introduce changes from the PR #200 by @alexeyklyukin

This commit is contained in:
Sergey Dudoladov
2018-02-07 14:02:32 +01:00
parent 60c742a3e8
commit f194a2ae5a
8 changed files with 44 additions and 21 deletions
+1
View File
@@ -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)