fix(query): add an assert

This commit is contained in:
Haojun Liao 2022-09-19 14:36:55 +08:00
parent f88d80844e
commit 01adee2f53
1 changed files with 1 additions and 0 deletions

View File

@ -1446,6 +1446,7 @@ size_t blockDataGetCapacityInRow(const SSDataBlock* pBlock, size_t pageSize) {
int32_t payloadSize = pageSize - blockDataGetSerialMetaSize(numOfCols);
int32_t rowSize = pBlock->info.rowSize;
int32_t nRows = payloadSize / rowSize;
ASSERT(nRows >= 1);
// the true value must be less than the value of nRows
int32_t additional = 0;