From 8e202b60a451b640d1ae5993d7e2917e158aff8d Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Fri, 10 Mar 2023 16:16:57 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E8=8E=B7=E5=8F=96=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E8=AE=BE=E5=A4=87=E7=9A=84=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/policy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/policy.cpp b/platform/src/policy.cpp index fb45706..656ed72 100644 --- a/platform/src/policy.cpp +++ b/platform/src/policy.cpp @@ -1048,7 +1048,7 @@ static enum session_action select_sf_by_ldbc(uint64_t hash, struct sff_param *sf sf_profile_id = fixed_num_array_index_elem(array, sf_profile_index); sf_is_active = health_check_session_get_status(sf_profile_id); - if (sf_is_active) + if (sf_is_active == 1) { __atomic_fetch_add(&g_metrics->sf_active_times, 1, __ATOMIC_RELAXED);