lightning: always get latest PD leader when access PD after initialized #46726
82.7586% of diff hit (target 0.0000%)
View this Pull Request on Codecov
82.7586% of diff hit (target 0.0000%)
Annotations
Check warning on line 40 in br/pkg/lightning/importer/precheck.go
codecov / codecov/patch
br/pkg/lightning/importer/precheck.go#L40
Added line #L40 was not covered by tests
Check warning on line 80 in br/pkg/lightning/importer/precheck.go
codecov / codecov/patch
br/pkg/lightning/importer/precheck.go#L80
Added line #L80 was not covered by tests
Check warning on line 93 in br/pkg/lightning/importer/precheck.go
codecov / codecov/patch
br/pkg/lightning/importer/precheck.go#L92-L93
Added lines #L92 - L93 were not covered by tests
Check warning on line 848 in br/pkg/pdutil/pd.go
codecov / codecov/patch
br/pkg/pdutil/pd.go#L848
Added line #L848 was not covered by tests
Check warning on line 882 in br/pkg/pdutil/pd.go
codecov / codecov/patch
br/pkg/pdutil/pd.go#L882
Added line #L882 was not covered by tests
Check warning on line 936 in br/pkg/pdutil/pd.go
codecov / codecov/patch
br/pkg/pdutil/pd.go#L936
Added line #L936 was not covered by tests
Check warning on line 992 in br/pkg/pdutil/pd.go
codecov / codecov/patch
br/pkg/pdutil/pd.go#L992
Added line #L992 was not covered by tests
Check warning on line 1014 in br/pkg/pdutil/pd.go
codecov / codecov/patch
br/pkg/pdutil/pd.go#L1014
Added line #L1014 was not covered by tests