Skip to content

Commit

Permalink
example/cmd/microctl: Report recovery tarball path during recovery
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jun 20, 2024
1 parent 6861438 commit 1fc5306
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/cmd/microctl/cluster_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,14 @@ func (c *cmdClusterEdit) run(cmd *cobra.Command, args []string) error {
return err
}

err = m.RecoverFromQuorumLoss(newMembers)
tarballPath, err := m.RecoverFromQuorumLoss(newMembers)
if err != nil {
return fmt.Errorf("cluster edit: %w", err)
}

fmt.Println("Cluster reconfigured successfully")
fmt.Printf("Cluster changes applied; new database state saved to %s\n\n", tarballPath)
fmt.Printf("*Before* starting any cluster member, copy %s to %s on all remaining cluster members.\n\n", tarballPath, tarballPath)
fmt.Printf("microd will load this file during startup.\n")

return nil
}

0 comments on commit 1fc5306

Please sign in to comment.