1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

unneeded k for loop

This commit is contained in:
Patrice Linel
2019-05-01 10:29:57 -05:00
parent 06f24df724
commit 9e7d852804

View File

@ -2847,16 +2847,14 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
convertToRelativeRid (rid, extentNum, blockNum); convertToRelativeRid (rid, extentNum, blockNum);
rowIDLists.push_back(rid); rowIDLists.push_back(rid);
uint32_t colWidth = (colTypes[j].colWidth > 8 ? 8 : colTypes[j].colWidth); uint32_t colWidth = (colTypes[j].colWidth > 8 ? 8 : colTypes[j].colWidth);
int rrid = (int) relativeRID / (BYTE_PER_BLOCK / colWidth)
// populate stats.blocksChanged // populate stats.blocksChanged
for (unsigned int k = 0; k < columnsUpdated.size(); k++) if (rrid > preBlkNums[j])
{ {
if ((int)(relativeRID / (BYTE_PER_BLOCK / colWidth)) > preBlkNums[j]) preBlkNums[j] = rrid ;
{
blocksChanged++; blocksChanged++;
preBlkNums[j] = relativeRID / (BYTE_PER_BLOCK / colWidth); }
}
}
} }
ridsFetched = true; ridsFetched = true;