Skip to content

Commit

Permalink
Update br/pkg/backup/prepare_snap/prepare.go
Browse files Browse the repository at this point in the history
Co-authored-by: BornChanger <97348524+BornChanger@users.noreply.github.com>
  • Loading branch information
2 people authored and ti-chi-bot committed Oct 22, 2024
1 parent dc19112 commit af4cab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/backup/prepare_snap/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func (p *Preparer) pushWaitApply(reqs pendingRequests, region Region) {
// This will pause the admin commands for each store.
func (p *Preparer) PrepareConnections(ctx context.Context) error {
failpoint.Inject("PrepareConnectionsErr", func() {
failpoint.Return(errors.New("meow meow meow"))
failpoint.Return(errors.New("mock PrepareConnectionsErr"))
})
log.Info("Preparing connections to stores.")
stores, err := p.env.GetAllLiveStores(ctx)
Expand Down

0 comments on commit af4cab2

Please sign in to comment.