diff --git a/pkg/statistics/collector.go b/pkg/statistics/collector.go index e63f8141638..d1a4ebf5a97 100644 --- a/pkg/statistics/collector.go +++ b/pkg/statistics/collector.go @@ -46,7 +46,7 @@ func (tikvCollector) filter(info *StoreSummaryInfo, kind constant.ResourceKind) } switch kind { case constant.LeaderKind: - return info.AllowLeaderTransferIn() || info.AllowLeaderTransferOut() + return info.AllowLeaderTransferIn() && info.AllowLeaderTransferOut() case constant.RegionKind: return true }