GetMaxStopDelay get the amount of time PostgreSQL has to stop
()
| 738 | |
| 739 | // GetMaxStopDelay get the amount of time PostgreSQL has to stop |
| 740 | func (cluster *Cluster) GetMaxStopDelay() int32 { |
| 741 | if cluster.Spec.MaxStopDelay > 0 { |
| 742 | return cluster.Spec.MaxStopDelay |
| 743 | } |
| 744 | return 1800 |
| 745 | } |
| 746 | |
| 747 | // GetSmartShutdownTimeout is used to ensure that smart shutdown timeout is a positive integer |
| 748 | func (cluster *Cluster) GetSmartShutdownTimeout() int32 { |
no outgoing calls
no test coverage detected