Skip to content

Commit

Permalink
microcluster: Take DB backup on cluster recover
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jun 26, 2024
1 parent 115fc80 commit 94404aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion microcluster/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ func (m *MicroCluster) RecoverFromQuorumLoss(members []cluster.DqliteMember) (st
return "", err
}

// FIXME: Take a DB backup
err = recover.CreateDatabaseBackup(m.FileSystem)
if err != nil {
return "", err
}

err = dqlite.ReconfigureMembershipExt(m.FileSystem.DatabaseDir, nodeInfo)
if err != nil {
Expand Down

0 comments on commit 94404aa

Please sign in to comment.