Browse Source

Merge branch 'master' of http://local.beijingyongan.com:3000/linux-dev/ya-serv

lixioayao 5 năm trước cách đây
mục cha
commit
02b2f8221b
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      db/db_api/CDBConnPool.cpp

+ 5 - 1
db/db_api/CDBConnPool.cpp

@@ -253,6 +253,7 @@ namespace YADB
 
 	void CDBConnPool::_AsyncThreadFunc( CDBConnPool* pOwner )
 	{
+		uint64_t cc=0;
 		while( pOwner->__Running )
 		{
 			std::vector<_ASYNC_SQL_*> sql_list;
@@ -263,7 +264,10 @@ namespace YADB
 				sql_list.swap(g_sql_list);
 			}
 
-			logn_info(2,"sql_list size=%lld", sql_list.size());
+			if(++cc % 100 == 0)//100ms 输出一次
+			{
+				logn_info(2,"sql_list size=%lld", sql_list.size());
+			}
 
 			for(auto pData:sql_list)
 			{