mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
dbms: Server: Fixed bug. Currently the move constructor and assignement operator of PODArray behave incorrectly if used with AllocatorWithStackMemory. Anyway here no move operation is needed to achieve what we want to do. [#METR-18844]
This commit is contained in:
parent
6c3d36d616
commit
09ec76ebb2
@ -113,7 +113,7 @@ struct AggregateFunctionSequenceMatchData final
|
||||
std::size_t size;
|
||||
readBinary(size, buf);
|
||||
|
||||
decltype(eventsList) eventsList;
|
||||
eventsList.clear();
|
||||
eventsList.reserve(size);
|
||||
|
||||
for (std::size_t i = 0; i < size; ++i)
|
||||
@ -126,8 +126,6 @@ struct AggregateFunctionSequenceMatchData final
|
||||
|
||||
eventsList.emplace_back(timestamp, Events{events});
|
||||
}
|
||||
|
||||
this->eventsList = std::move(eventsList);
|
||||
}
|
||||
};
|
||||
|
||||
@ -270,7 +268,7 @@ private:
|
||||
|
||||
void parsePattern()
|
||||
{
|
||||
PatternActions actions;
|
||||
actions.clear();
|
||||
actions.emplace_back(PatternActionType::KleeneStar);
|
||||
|
||||
ParserString special_open_p("(?");
|
||||
@ -356,8 +354,6 @@ private:
|
||||
else
|
||||
throw_exception("Could not parse pattern, unexpected starting symbol");
|
||||
}
|
||||
|
||||
this->actions = std::move(actions);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user