Hotfix/sangshuduo/td 5300 taosdemo stmt print (#6918)

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

* fix default iface is unknown.
This commit is contained in:
Shuduo Sang 2021-07-19 14:40:43 +08:00 committed by GitHub
parent 0953a60676
commit b0bdd7c2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 385 additions and 379 deletions

View File

@ -5246,12 +5246,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,
@ -5871,7 +5877,7 @@ static int32_t prepareStbStmtInterlace(
stbInfo,
stmt,
tableName,
g_args.num_of_RPR,
batch,
insertRows, 0, startTime,
pSamplePos);
}