From 99692eb4cbcd243d3faad8669790dcdbbe59e8c5 Mon Sep 17 00:00:00 2001 From: luancheng Date: Tue, 10 Nov 2020 20:18:39 +0800 Subject: [PATCH] fix ci --- pkg/pdutil/pd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/pdutil/pd.go b/pkg/pdutil/pd.go index 2f76c913f..3402e3c09 100644 --- a/pkg/pdutil/pd.go +++ b/pkg/pdutil/pd.go @@ -439,7 +439,7 @@ func (p *PdController) UpdatePDScheduleConfig( ctx context.Context, cfg map[string]interface{}, prefixs ...string, ) error { prefix := scheduleConfigPrefix - if len(prefixs) == 0 { + if len(prefixs) != 0 { prefix = prefixs[0] } for _, addr := range p.addrs { @@ -559,3 +559,4 @@ func (p *PdController) Close() { p.pdClient.Close() close(p.schedulerPauseCh) } +