You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Fixes of bugs from ASAN warnings, part one (#2796)
This commit is contained in:
@@ -298,7 +298,6 @@ void TupleAnnexStep::join()
|
||||
|
||||
uint32_t TupleAnnexStep::nextBand(messageqcpp::ByteStream& bs)
|
||||
{
|
||||
RGData rgDataOut;
|
||||
bool more = false;
|
||||
uint32_t rowCount = 0;
|
||||
|
||||
@@ -306,18 +305,18 @@ uint32_t TupleAnnexStep::nextBand(messageqcpp::ByteStream& bs)
|
||||
{
|
||||
bs.restart();
|
||||
|
||||
more = fOutputDL->next(fOutputIterator, &rgDataOut);
|
||||
more = fOutputDL->next(fOutputIterator, &fRgDataOut);
|
||||
|
||||
if (more && !cancelled())
|
||||
{
|
||||
fRowGroupDeliver.setData(&rgDataOut);
|
||||
fRowGroupDeliver.setData(&fRgDataOut);
|
||||
fRowGroupDeliver.serializeRGData(bs);
|
||||
rowCount = fRowGroupDeliver.getRowCount();
|
||||
}
|
||||
else
|
||||
{
|
||||
while (more)
|
||||
more = fOutputDL->next(fOutputIterator, &rgDataOut);
|
||||
more = fOutputDL->next(fOutputIterator, &fRgDataOut);
|
||||
|
||||
fEndOfResult = true;
|
||||
}
|
||||
@@ -327,7 +326,7 @@ uint32_t TupleAnnexStep::nextBand(messageqcpp::ByteStream& bs)
|
||||
handleException(std::current_exception(), logging::ERR_IN_DELIVERY, logging::ERR_ALWAYS_CRITICAL,
|
||||
"TupleAnnexStep::nextBand()");
|
||||
while (more)
|
||||
more = fOutputDL->next(fOutputIterator, &rgDataOut);
|
||||
more = fOutputDL->next(fOutputIterator, &fRgDataOut);
|
||||
|
||||
fEndOfResult = true;
|
||||
}
|
||||
@@ -335,8 +334,8 @@ uint32_t TupleAnnexStep::nextBand(messageqcpp::ByteStream& bs)
|
||||
if (fEndOfResult)
|
||||
{
|
||||
// send an empty / error band
|
||||
rgDataOut.reinit(fRowGroupDeliver, 0);
|
||||
fRowGroupDeliver.setData(&rgDataOut);
|
||||
fRgDataOut.reinit(fRowGroupDeliver, 0);
|
||||
fRowGroupDeliver.setData(&fRgDataOut);
|
||||
fRowGroupDeliver.resetRowGroup(0);
|
||||
fRowGroupDeliver.setStatus(status());
|
||||
fRowGroupDeliver.serializeRGData(bs);
|
||||
|
Reference in New Issue
Block a user