revert pooler change and minor update to version msg
This commit is contained in:
		
							parent
							
								
									f2979e2acf
								
							
						
					
					
						commit
						8d11677d1c
					
				| 
						 | 
				
			
			@ -714,9 +714,8 @@ func (c *Cluster) syncConnectionPooler(oldSpec, newSpec *acidv1.Postgresql, Look
 | 
			
		|||
	// Handling the case when connectionPooler is not there but it is required
 | 
			
		||||
	// as per spec, hence do not skip syncing in that case, even though there
 | 
			
		||||
	// is no diff in specs
 | 
			
		||||
	if (!needSync && len(masterChanges) <= 0 && len(replicaChanges) <= 0 &&
 | 
			
		||||
		c.ConnectionPooler != nil && (needConnectionPooler(&newSpec.Spec))) ||
 | 
			
		||||
		(c.ConnectionPooler == nil && !(needConnectionPooler(&newSpec.Spec))) {
 | 
			
		||||
	if (!needSync && len(masterChanges) <= 0 && len(replicaChanges) <= 0) &&
 | 
			
		||||
		(c.ConnectionPooler != nil && (needConnectionPooler(&newSpec.Spec))) {
 | 
			
		||||
		c.logger.Debugln("syncing pooler is not required")
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ func (c *Cluster) majorVersionUpgrade() error {
 | 
			
		|||
	desiredVersion := c.GetDesiredMajorVersionAsInt()
 | 
			
		||||
 | 
			
		||||
	if c.currentMajorVersion >= desiredVersion {
 | 
			
		||||
		c.logger.Infof("cluster version up to date. current: %d min desired: %d", c.currentMajorVersion, desiredVersion)
 | 
			
		||||
		c.logger.Infof("cluster version up to date. current: %d, min desired: %d", c.currentMajorVersion, desiredVersion)
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue