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: