From b7791235f38389884c35b6e295523c4b05f99aba Mon Sep 17 00:00:00 2001 From: zqq Date: Mon, 3 Nov 2025 19:28:19 +0800 Subject: [PATCH] fix issue Signed-off-by: zqq --- .../gaussdb_rd/src/common/src/grd_api_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/grd_api_manager.cpp b/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/grd_api_manager.cpp index 884613d2503..99eff468488 100755 --- a/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/grd_api_manager.cpp +++ b/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/grd_api_manager.cpp @@ -15,6 +15,7 @@ #include "grd_api_manager.h" +#include #ifndef _WIN32 #include #endif @@ -31,15 +32,14 @@ #include "grd_type_inner.h" #include "rd_log_print.h" +namespace DocumentDB { #ifndef _WIN32 static void *g_library = nullptr; static int g_openCount = 0; static std::mutex g_apiInfoMutex; #endif +static std::atomic g_isGmdbLib = false; -static bool g_isGmdbLib = false; - -namespace DocumentDB { void GRD_DBApiInitCommon(GRD_APIInfo &GRD_DBApiInfo) { GRD_DBApiInfo.DBOpenApi = GRD_DBOpenInner; -- Gitee