Skip to content

Commit ee606a1

Browse files
author
Ben Iofel
committed
update pg_unregister comment
1 parent c21634d commit ee606a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/pg_unregister/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ func processUnregistration(ctx context.Context) error {
4646

4747
member, err := node.RepMgr.MemberByHostname(ctx, conn, string(hostnameBytes))
4848
if errors.Is(err, pgx.ErrNoRows) {
49-
// for historical reasons, flyctl passes in the 6pn as the hostname
49+
// 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
5052
member, err = node.RepMgr.MemberBy6PN(ctx, conn, string(hostnameBytes))
5153
if err != nil {
5254
return fmt.Errorf("failed to resolve member by hostname and 6pn: %s", err)

0 commit comments

Comments
 (0)