Merge pull request #4032 from taosdata/bugfix/td-1834
[TD-1834]<fix>: crash when query order is desc
This commit is contained in:
commit
caa38d79ac
|
@ -1263,7 +1263,6 @@ static void copyAllRemainRowsFromFileBlock(STsdbQueryHandle* pQueryHandle, STabl
|
|||
int32_t end = endPos;
|
||||
|
||||
if (!ASCENDING_TRAVERSE(pQueryHandle->order)) {
|
||||
assert(start >= end);
|
||||
SWAP(start, end, int32_t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue