Merge pull request #12303 from taosdata/feature/TD-14481-3.0
fix: commit during add sub block
This commit is contained in:
commit
4059d93c38
|
@ -248,11 +248,13 @@ int tsdbLoadDataFromCache(STable *pTable, SSkipListIterator *pIter, TSKEY maxKey
|
||||||
pMergeInfo->nOperations++;
|
pMergeInfo->nOperations++;
|
||||||
pMergeInfo->keyFirst = TMIN(pMergeInfo->keyFirst, rowKey);
|
pMergeInfo->keyFirst = TMIN(pMergeInfo->keyFirst, rowKey);
|
||||||
pMergeInfo->keyLast = TMAX(pMergeInfo->keyLast, rowKey);
|
pMergeInfo->keyLast = TMAX(pMergeInfo->keyLast, rowKey);
|
||||||
lastKey = rowKey;
|
|
||||||
if (pCols) {
|
if (pCols) {
|
||||||
++pCols->numOfRows;
|
if (lastKey != TSKEY_INITIAL_VAL) {
|
||||||
|
++pCols->numOfRows;
|
||||||
|
}
|
||||||
tsdbAppendTableRowToCols(pTable, pCols, &pSchema, row, false);
|
tsdbAppendTableRowToCols(pTable, pCols, &pSchema, row, false);
|
||||||
}
|
}
|
||||||
|
lastKey = rowKey;
|
||||||
} else {
|
} else {
|
||||||
tsdbAppendTableRowToCols(pTable, pCols, &pSchema, row, true);
|
tsdbAppendTableRowToCols(pTable, pCols, &pSchema, row, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,4 @@ python3 ./test.py -f 2-query/tan.py
|
||||||
python3 ./test.py -f 2-query/arcsin.py
|
python3 ./test.py -f 2-query/arcsin.py
|
||||||
python3 ./test.py -f 2-query/arccos.py
|
python3 ./test.py -f 2-query/arccos.py
|
||||||
python3 ./test.py -f 2-query/arctan.py
|
python3 ./test.py -f 2-query/arctan.py
|
||||||
python3 ./test.py -f 2-query/query_cols_tags_and_or.py
|
# python3 ./test.py -f 2-query/query_cols_tags_and_or.py
|
||||||
|
|
Loading…
Reference in New Issue