You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("no primary to follow and can't configure self as primary because primary region is '%s' and we are in '%s'", repmgr.Region, os.Getenv("PRIMARY_REGION"))
218
216
}
219
217
220
-
// Initialize ourselves as the primary.
218
+
// Create required users
221
219
iferr:=n.createRequiredUsers(conn); err!=nil {
222
220
returnfmt.Errorf("failed to create required users: %s", err)
223
221
}
224
222
225
-
// Creates the replication manager database.
223
+
// Setup repmgr database, extension, and register ourselves as the primary
226
224
fmt.Println("Perform Repmgr setup")
227
225
iferr:=repmgr.setup(conn); err!=nil {
228
226
returnfmt.Errorf("failed to setup repmgr: %s", err)
0 commit comments