diff --git a/include/util/tdef.h b/include/util/tdef.h index ad7206f7bb1d5840a779cfcddbff6680538ad8d8..7c1f46ce69715431e073f2e5d0af473aa66c8a6f 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -368,7 +368,11 @@ typedef enum ELogicConditionType { #define PRIMARYKEY_TIMESTAMP_COL_ID 1 #define COL_REACH_END(colId, maxColId) ((colId) > (maxColId)) +#ifdef WINDOWS +#define TSDB_MAX_RPC_THREADS 4 // windows pipe only support 4 connections. +#else #define TSDB_MAX_RPC_THREADS 5 +#endif #define TSDB_QUERY_TYPE_NON_TYPE 0x00u // none type #define TSDB_QUERY_TYPE_FREE_RESOURCE 0x01u // free qhandle at vnode diff --git a/source/libs/transport/test/CMakeLists.txt b/source/libs/transport/test/CMakeLists.txt index 468b70fb711a15a83c97a5a45adb68dee3d1c368..98a252e008d85b27206fa58055f757dd02d64a78 100644 --- a/source/libs/transport/test/CMakeLists.txt +++ b/source/libs/transport/test/CMakeLists.txt @@ -111,12 +111,10 @@ target_link_libraries (pushServer ) -if(NOT TD_WINDOWS) - add_test( - NAME transUT - COMMAND transUT - ) -endif(NOT TD_WINDOWS) +add_test( + NAME transUT + COMMAND transUT +) add_test( NAME transUtilUt COMMAND transportTest