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
YuJuncen and BornChanger authored Apr 25, 2024
1 parent 14ddb35 commit 8fd0bf7
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 8fd0bf7

Please sign in to comment.