Skip to content

Commit 40dcfae

Browse files
authored
Fixes critical bug surrounding cluster state screening (#151)
1 parent 5111cdd commit 40dcfae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/flypg/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func (n *Node) PostInit(ctx context.Context) error {
250250
switch member.Role {
251251
case PrimaryRoleName:
252252
// Verify cluster state to ensure we are the actual primary and not a zombie.
253-
primary, err := PerformScreening(ctx, conn, n)
253+
primary, err := PerformScreening(ctx, repConn, n)
254254
if errors.Is(err, ErrZombieDiagnosisUndecided) {
255255
log.Println("[ERROR] Unable to confirm that we are the true primary!")
256256
// Turn member read-only

0 commit comments

Comments
 (0)