Skip to content

Commit

Permalink
br: use the correct unit for pausing schedulers (#33545) (#33816)
Browse files Browse the repository at this point in the history
close #33546
  • Loading branch information
ti-srebot authored Apr 28, 2022
1 parent c53fe3d commit a6848c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/pdutil/pd.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (p *PdController) getStoreInfoWith(

func (p *PdController) doPauseSchedulers(ctx context.Context, schedulers []string, post pdHTTPRequest) ([]string, error) {
// pause this scheduler with 300 seconds
body, err := json.Marshal(pauseSchedulerBody{Delay: int64(pauseTimeout)})
body, err := json.Marshal(pauseSchedulerBody{Delay: int64(pauseTimeout.Seconds())})
if err != nil {
return nil, errors.Trace(err)
}
Expand Down

0 comments on commit a6848c4

Please sign in to comment.