Skip to content

Commit c21634d

Browse files
author
Ben Iofel
committed
add missing panic
1 parent fd6192e commit c21634d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/flypg/node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ func (n *Node) PostInit(ctx context.Context) error {
284284
if err := Quarantine(ctx, n, primary); err != nil {
285285
return fmt.Errorf("failed to quarantine failed primary: %s", err)
286286
}
287+
288+
panic(err)
287289
} else if errors.Is(err, ErrZombieDiscovered) {
288290
log.Printf("[ERROR] The majority of registered members agree that '%s' is the real primary.\n", primary)
289291
// Turn member read-only

0 commit comments

Comments
 (0)