fix update bug

This commit is contained in:
Hongze Cheng 2020-09-17 12:13:19 +08:00
parent 3d2a77ea6d
commit 2b1dc53ae1
1 changed files with 5 additions and 1 deletions

View File

@ -1321,7 +1321,11 @@ static void doMergeTwoLevelData(STsdbQueryHandle* pQueryHandle, STableCheckInfo*
assert(end != -1);
if (tsArray[end] == key) { // the value of key in cache equals to the end timestamp value, ignore it
moveToNextRowInMem(pCheckInfo);
if (!pCfg->update) {
moveToNextRowInMem(pCheckInfo);
} else {
end -= step;
}
}
int32_t qstart = 0, qend = 0;