From 921ed797360bfd532dfa4892b426275437e2d67c Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Fri, 13 Sep 2024 17:20:04 +0800 Subject: [PATCH] fix Signed-off-by: lhy1024 --- pkg/statistics/collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }