From b39de13c2636a8c3b97ad3426ff77e2a9b8db6f0 Mon Sep 17 00:00:00 2001 From: lijieac Date: Mon, 25 Nov 2024 09:25:32 +0800 Subject: [PATCH 1/2] docs: license file name spelling error --- LICENST.txt => License | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENST.txt => License (100%) diff --git a/LICENST.txt b/License similarity index 100% rename from LICENST.txt rename to License -- Gitee From 1fca9697ead229212f42a0ae20410b669e1c00e2 Mon Sep 17 00:00:00 2001 From: bolano Date: Thu, 28 Nov 2024 20:52:25 +0800 Subject: [PATCH 2/2] add securec unlikely --- storage/ctc/ctc_stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/ctc/ctc_stats.h b/storage/ctc/ctc_stats.h index c8f7dc1..7010387 100644 --- a/storage/ctc/ctc_stats.h +++ b/storage/ctc/ctc_stats.h @@ -30,12 +30,12 @@ #define BEGIN_RECORD_STATS \ uint64_t start_clock = 0; \ - if (ctc_stats::get_instance()->get_statistics_enabled()) { \ + if (SECUREC_UNLIKELY(ctc_stats::get_instance()->get_statistics_enabled())) { \ start_clock = rdtsc(); \ } #define END_RECORD_STATS(type) \ - if (ctc_stats::get_instance()->get_statistics_enabled()) { \ + if (SECUREC_UNLIKELY(ctc_stats::get_instance()->get_statistics_enabled())) { \ ctc_stats::get_instance()->gather_stats(type, start_clock); \ } -- Gitee