We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21634d commit ee606a1Copy full SHA for ee606a1
cmd/pg_unregister/main.go
@@ -46,7 +46,9 @@ func processUnregistration(ctx context.Context) error {
46
47
member, err := node.RepMgr.MemberByHostname(ctx, conn, string(hostnameBytes))
48
if errors.Is(err, pgx.ErrNoRows) {
49
- // for historical reasons, flyctl passes in the 6pn as the hostname
+ // for historical reasons, old versions of flyctl passes in the 6pn as the hostname
50
+ // most likely this won't work because the hostname does not resolve if the machine is stopped,
51
+ // but we try anyway
52
member, err = node.RepMgr.MemberBy6PN(ctx, conn, string(hostnameBytes))
53
if err != nil {
54
return fmt.Errorf("failed to resolve member by hostname and 6pn: %s", err)
0 commit comments