From 107533386684aeff0197e1876705d8348afd9d0b Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Tue, 20 Aug 2024 13:31:06 +0800 Subject: [PATCH] fix(meta): fix cpu core limit check query Signed-off-by: Bugen Zhao --- src/meta/src/controller/cluster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/src/controller/cluster.rs b/src/meta/src/controller/cluster.rs index 10d4a947e2a9a..76239b5352a71 100644 --- a/src/meta/src/controller/cluster.rs +++ b/src/meta/src/controller/cluster.rs @@ -598,7 +598,7 @@ impl ClusterControllerInner { .eq(host_address.host.clone()) .and(worker::Column::Port.eq(host_address.port))) .not() - .and(worker::Column::WorkerType.eq(WorkerType::ComputeNode as i32)), + .and(worker::Column::WorkerType.eq(WorkerType::ComputeNode)), ) .select_only() .column(worker::Column::WorkerId)