Update pkg/cluster/pod.go
This commit is contained in:
		
							parent
							
								
									92b2e9da4c
								
							
						
					
					
						commit
						87d50d2ed5
					
				| 
						 | 
					@ -523,7 +523,7 @@ func (c *Cluster) getSwitchoverCandidate(master *v1.Pod) (spec.NamespacedName, e
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if len(skipReasons) > 0 {
 | 
						if len(skipReasons) > 0 {
 | 
				
			||||||
		err = fmt.Errorf("no replica suitable for switchover: %s", strings.Join(skipReasons, `','`))
 | 
							err = fmt.Errorf("no replica suitable for switchover: %s", strings.Join(skipReasons, `', '`))
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		err = fmt.Errorf("no replica running")
 | 
							err = fmt.Errorf("no replica running")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue