fix compile error on windows
This commit is contained in:
parent
33b428a4ca
commit
8982256421
|
@ -4435,7 +4435,7 @@ static void generateBlockDistResult(STableBlockDist *pTableBlockDist) {
|
||||||
|
|
||||||
taosArraySort(blockInfos, compareBlockInfo);
|
taosArraySort(blockInfos, compareBlockInfo);
|
||||||
|
|
||||||
sprintf(pTableBlockDist->result,
|
int sz = sprintf(pTableBlockDist->result,
|
||||||
"summery: \n\t 5th=[%d], 25th=[%d], 50th=[%d],75th=[%d], 95th=[%d], 99th=[%d] \n\t min=[%"PRId64"], max=[%"PRId64"], avg = [%"PRId64"] \n\t totalRows=[%"PRId64"], totalBlocks=[%"PRId64"] \n\t seekHeaderTimeCost=[%"PRId64"(us)] \n\t rowsInMem=[%"PRId64"]",
|
"summery: \n\t 5th=[%d], 25th=[%d], 50th=[%d],75th=[%d], 95th=[%d], 99th=[%d] \n\t min=[%"PRId64"], max=[%"PRId64"], avg = [%"PRId64"] \n\t totalRows=[%"PRId64"], totalBlocks=[%"PRId64"] \n\t seekHeaderTimeCost=[%"PRId64"(us)] \n\t rowsInMem=[%"PRId64"]",
|
||||||
getPercentileFromSortedArray(blockInfos, 0.05), getPercentileFromSortedArray(blockInfos, 0.25), getPercentileFromSortedArray(blockInfos, 0.50),
|
getPercentileFromSortedArray(blockInfos, 0.05), getPercentileFromSortedArray(blockInfos, 0.25), getPercentileFromSortedArray(blockInfos, 0.50),
|
||||||
getPercentileFromSortedArray(blockInfos, 0.75), getPercentileFromSortedArray(blockInfos, 0.95), getPercentileFromSortedArray(blockInfos, 0.99),
|
getPercentileFromSortedArray(blockInfos, 0.75), getPercentileFromSortedArray(blockInfos, 0.95), getPercentileFromSortedArray(blockInfos, 0.99),
|
||||||
|
@ -4443,6 +4443,8 @@ static void generateBlockDistResult(STableBlockDist *pTableBlockDist) {
|
||||||
totalRows, totalBlocks,
|
totalRows, totalBlocks,
|
||||||
pTableBlockDist->firstSeekTimeUs,
|
pTableBlockDist->firstSeekTimeUs,
|
||||||
pTableBlockDist->numOfRowsInMemTable);
|
pTableBlockDist->numOfRowsInMemTable);
|
||||||
|
UNUSE(sz);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
void skipBlocks(SQueryRuntimeEnv *pRuntimeEnv) {
|
void skipBlocks(SQueryRuntimeEnv *pRuntimeEnv) {
|
||||||
SQuery *pQuery = pRuntimeEnv->pQuery;
|
SQuery *pQuery = pRuntimeEnv->pQuery;
|
||||||
|
|
Loading…
Reference in New Issue