未验证 提交 d06ae810 编写于 作者: Y Yang Zhao 提交者: GitHub

fix null pointer static analysis (#8396)

上级 043e28b8
...@@ -10448,10 +10448,8 @@ static void* syncWriteProgressiveSml(threadInfo *pThreadInfo) { ...@@ -10448,10 +10448,8 @@ static void* syncWriteProgressiveSml(threadInfo *pThreadInfo) {
debugPrint("%s() LN%d: ### sml progressive write\n", __func__, __LINE__); debugPrint("%s() LN%d: ### sml progressive write\n", __func__, __LINE__);
SSuperTable* stbInfo = pThreadInfo->stbInfo; SSuperTable* stbInfo = pThreadInfo->stbInfo;
int64_t timeStampStep = int64_t timeStampStep = stbInfo->timeStampStep;
stbInfo?stbInfo->timeStampStep:g_args.timestamp_step; int64_t insertRows = stbInfo->insertRows;
int64_t insertRows =
(stbInfo)?stbInfo->insertRows:g_args.insertRows;
verbosePrint("%s() LN%d insertRows=%"PRId64"\n", verbosePrint("%s() LN%d insertRows=%"PRId64"\n",
__func__, __LINE__, insertRows); __func__, __LINE__, insertRows);
...@@ -11656,11 +11654,16 @@ static int insertTestProcess() { ...@@ -11656,11 +11654,16 @@ static int insertTestProcess() {
} }
} }
} else { } else {
startMultiThreadInsertData( if (SML_IFACE == g_args.iface) {
errorPrint2("%s\n", "Schemaless insertion must include stable");
exit(EXIT_FAILURE);
} else {
startMultiThreadInsertData(
g_Dbs.threadCount, g_Dbs.threadCount,
g_Dbs.db[i].dbName, g_Dbs.db[i].dbName,
g_Dbs.db[i].dbCfg.precision, g_Dbs.db[i].dbCfg.precision,
NULL); NULL);
}
} }
} }
//end = taosGetTimestampMs(); //end = taosGetTimestampMs();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册