mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Tiny improvement [#CLICKHOUSE-3820]
This commit is contained in:
parent
53f9ae3cf1
commit
215ec2be98
@ -1021,6 +1021,10 @@ void ZooKeeper::receiveEvent()
|
||||
{
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
|
||||
/// Unrecoverable. Don't leave incorrect state in memory.
|
||||
if (!response)
|
||||
std::terminate();
|
||||
|
||||
response->error = ZMARSHALLINGERROR;
|
||||
if (request_info.callback)
|
||||
request_info.callback(*response);
|
||||
|
Loading…
Reference in New Issue
Block a user