From 3d0253523b94e8fe9a38e2850e74d576429f1427 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 14 Oct 2025 19:40:22 +0800 Subject: [PATCH] =?UTF-8?q?dbm=E7=9A=84=E6=AD=BB=E9=94=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/dbmService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/dbmService.go b/service/dbmService.go index 3eb7f79..0b562e7 100644 --- a/service/dbmService.go +++ b/service/dbmService.go @@ -38,7 +38,7 @@ func RunSQL(req *proto.RunSQLRequest) (*proto.SQLResult, error) { } func GetGORMDBObject(dbmInfo *proto.DBManage) (db_ *gorm.DB, err error) { - dao.DBMMapRWMutex.RLock() + //dao.DBMMapRWMutex.RLock() if dao.DBMMap != nil { dbValue := dao.DBMMap[dbmInfo.ID] if dbValue != nil { @@ -46,7 +46,7 @@ func GetGORMDBObject(dbmInfo *proto.DBManage) (db_ *gorm.DB, err error) { return dbValue.Value, nil } } - dao.DBMMapRWMutex.RUnlock() + //dao.DBMMapRWMutex.RUnlock() switch dbmInfo.DB_Type { case proto.DB_TYPE_MYSQL: // MySQL