fix(tsdb): update the compare func.

This commit is contained in:
Haojun Liao 2024-04-17 11:32:48 +08:00
parent 24c000e052
commit 69cb630e7f
1 changed files with 1 additions and 5 deletions

View File

@ -120,15 +120,11 @@ int32_t pkCompEx(SRowKey* p1, SRowKey* p2) {
} else { } else {
return ret > 0 ? 1 : -1; return ret > 0 ? 1 : -1;
} }
} else {
if (p1->pks[0].val == p2->pks[0].val) {
return 0;
} else { } else {
return tValueCompare(&p1->pks[0], &p2->pks[0]); return tValueCompare(&p1->pks[0], &p2->pks[0]);
} }
} }
} }
}
static void tColRowGetKeyDeepCopy(SBlockData* pBlock, int32_t irow, int32_t slotId, SRowKey* pKey) { static void tColRowGetKeyDeepCopy(SBlockData* pBlock, int32_t irow, int32_t slotId, SRowKey* pKey) {
pKey->ts = pBlock->aTSKEY[irow]; pKey->ts = pBlock->aTSKEY[irow];