From 74dd6d995f742c5cc77608565eaf7549e380b38c Mon Sep 17 00:00:00 2001 From: zhulongjun Date: Tue, 26 Feb 2019 21:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=B3=A8=E9=87=8A=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/dbproxy/dbpool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/dbproxy/dbpool.cc b/server/dbproxy/dbpool.cc index 7d59064..01289bd 100644 --- a/server/dbproxy/dbpool.cc +++ b/server/dbproxy/dbpool.cc @@ -206,7 +206,7 @@ private: void DBPool::Init() { - #if 0 + #if 1 #if 1 /*mysql_init()不是完全线程安全的,但是只要成功调用一次就后就线程安全了, 如果有多线程并发使用mysql_init(),建议在程序初始化时空调一次mysql_init(),他的这点特性很像qsort() @@ -233,7 +233,7 @@ void DBPool::Update() void DBPool::_SS_GSM_ExecAsyncSql(f8::MsgHdr& hdr, const ss::SS_GSM_ExecAsyncSql& msg) { - #if 0 + #if 1 DBThread *db_thread = db_single_thread_; switch (msg.exec_type()) { case 0: