File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ func (instance *Instance) Rewind(postgresMajorVersion int) error {
794
794
}
795
795
796
796
// PgIsReady gets the status from the pg_isready command
797
- func ( instance * Instance ) PgIsReady () error {
797
+ func PgIsReady () error {
798
798
// We just use the environment variables we already have
799
799
// to pass the connection parameters
800
800
options := []string {
@@ -805,7 +805,7 @@ func (instance *Instance) PgIsReady() error {
805
805
806
806
// Run `pg_isready` which returns 0 if everything is OK.
807
807
// It returns 1 when PostgreSQL is not ready to accept
808
- // connections but it is starting up (this is a valid
808
+ // connections but, it is starting up (this is a valid
809
809
// condition for example for a standby that is fetching
810
810
// WAL files and trying to reach a consistent state).
811
811
cmd := exec .Command (pgIsReady , options ... ) // #nosec G204
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import (
37
37
38
38
// IsServerHealthy check if the instance is healthy
39
39
func (instance * Instance ) IsServerHealthy () error {
40
- err := instance . PgIsReady ()
40
+ err := PgIsReady ()
41
41
42
42
// A healthy server can also be actively rejecting connections.
43
43
// That's not a problem: it's only the server starting up or shutting
You can’t perform that action at this time.
0 commit comments