mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Don't capture this in callback
This commit is contained in:
parent
0bc41bab74
commit
1a94675350
@ -382,7 +382,7 @@ void KeeperTCPHandler::runImpl()
|
||||
}
|
||||
|
||||
auto response_fd = poll_wrapper->getResponseFD();
|
||||
auto response_callback = [this, response_fd] (const Coordination::ZooKeeperResponsePtr & response)
|
||||
auto response_callback = [responses = this->responses, response_fd](const Coordination::ZooKeeperResponsePtr & response)
|
||||
{
|
||||
if (!responses->push(response))
|
||||
throw Exception(ErrorCodes::SYSTEM_ERROR,
|
||||
|
@ -25,7 +25,7 @@ struct SocketInterruptablePollWrapper;
|
||||
using SocketInterruptablePollWrapperPtr = std::unique_ptr<SocketInterruptablePollWrapper>;
|
||||
|
||||
using ThreadSafeResponseQueue = ConcurrentBoundedQueue<Coordination::ZooKeeperResponsePtr>;
|
||||
using ThreadSafeResponseQueuePtr = std::unique_ptr<ThreadSafeResponseQueue>;
|
||||
using ThreadSafeResponseQueuePtr = std::shared_ptr<ThreadSafeResponseQueue>;
|
||||
|
||||
struct LastOp;
|
||||
using LastOpMultiVersion = MultiVersion<LastOp>;
|
||||
|
Loading…
Reference in New Issue
Block a user