Hotfix/sangshuduo/td 5300 taosdemo stmt print for master (#6919)

* [TD-5300]<fix>: taosdemo stmt debug print.

* fix default iface is unknown.

* merge with TD-5300 fix against develop
This commit is contained in:
Shuduo Sang 2021-07-19 16:48:40 +08:00 committed by GitHub
parent 59f9aa8c2f
commit 43a3ee0690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 386 additions and 380 deletions

View File

@ -5249,12 +5249,18 @@ static int32_t generateStbDataTail(
int64_t lenOfRow = 0;
if (tsRand) {
if (superTblInfo->disorderRatio > 0) {
lenOfRow = generateStbRowData(superTblInfo, data,
startTime + getTSRandTail(
superTblInfo->timeStampStep, k,
superTblInfo->disorderRatio,
superTblInfo->disorderRange)
);
} else {
lenOfRow = generateStbRowData(superTblInfo, data,
startTime + superTblInfo->timeStampStep * k
);
}
} else {
lenOfRow = getRowDataFromSample(
data,
@ -5874,7 +5880,7 @@ static int32_t prepareStbStmtInterlace(
stbInfo,
stmt,
tableName,
g_args.num_of_RPR,
batch,
insertRows, 0, startTime,
pSamplePos);
}
@ -5892,7 +5898,7 @@ static int32_t prepareStbStmtProgressive(
stbInfo,
stmt,
tableName,
g_args.num_of_RPR,
batch,
insertRows, recordFrom, startTime,
pSamplePos);
}