未验证 提交 761b11f1 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 3985 for develop (#5961)

* [TD-3985]<fix>: taosdemo timestamp step overflow.

* fix specified subscribe test.

* replace potential overflow of int32 to int64

* replace potential int32 overflow variables to int64.

* replace potential int32 overflow variables to int64.

* change max of int16 to int64 after type changed.
Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 dd2ed98f
...@@ -2898,7 +2898,7 @@ static int startMultiThreadCreateChildTable( ...@@ -2898,7 +2898,7 @@ static int startMultiThreadCreateChildTable(
startFrom = t_info->end_table_to + 1; startFrom = t_info->end_table_to + 1;
t_info->use_metric = true; t_info->use_metric = true;
t_info->cols = cols; t_info->cols = cols;
t_info->minDelay = INT16_MAX; t_info->minDelay = INT64_MAX;
pthread_create(pids + i, NULL, createTable, t_info); pthread_create(pids + i, NULL, createTable, t_info);
} }
...@@ -5596,7 +5596,7 @@ static void startMultiThreadInsertData(int threads, char* db_name, ...@@ -5596,7 +5596,7 @@ static void startMultiThreadInsertData(int threads, char* db_name,
t_info->superTblInfo = superTblInfo; t_info->superTblInfo = superTblInfo;
t_info->start_time = start_time; t_info->start_time = start_time;
t_info->minDelay = INT16_MAX; t_info->minDelay = INT64_MAX;
if ((NULL == superTblInfo) || if ((NULL == superTblInfo) ||
(0 == strncasecmp(superTblInfo->insertMode, "taosc", 5))) { (0 == strncasecmp(superTblInfo->insertMode, "taosc", 5))) {
...@@ -5641,7 +5641,7 @@ static void startMultiThreadInsertData(int threads, char* db_name, ...@@ -5641,7 +5641,7 @@ static void startMultiThreadInsertData(int threads, char* db_name,
int64_t totalDelay = 0; int64_t totalDelay = 0;
int64_t maxDelay = 0; int64_t maxDelay = 0;
int64_t minDelay = INT16_MAX; int64_t minDelay = INT64_MAX;
int64_t cntDelay = 1; int64_t cntDelay = 1;
double avgDelay = 0; double avgDelay = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册