mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Using std::shared_ptr for data types [#METR-21503].
This commit is contained in:
parent
d4cc4abb62
commit
ee04be64e3
@ -160,7 +160,7 @@ void MultiplexedConnections::sendQuery(const String & query, const String & quer
|
||||
Connection::Packet MultiplexedConnections::receivePacket()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(cancel_mutex);
|
||||
const auto & packet = receivePacketUnlocked();
|
||||
Connection::Packet packet = receivePacketUnlocked();
|
||||
if (block_extra_info)
|
||||
{
|
||||
if (packet.type == Protocol::Server::Data)
|
||||
@ -168,7 +168,7 @@ Connection::Packet MultiplexedConnections::receivePacket()
|
||||
else
|
||||
block_extra_info->is_valid = false;
|
||||
}
|
||||
return std::move(packet);
|
||||
return packet;
|
||||
}
|
||||
|
||||
BlockExtraInfo MultiplexedConnections::getBlockExtraInfo() const
|
||||
|
Loading…
Reference in New Issue
Block a user