mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Avoid SIGSEGV on batch send failure (file with index XX is absent)
In case of the following error: Failed to send batch: file with index 23742 is absent NULL dereference will occur for the "remote".
This commit is contained in:
parent
1fe79ad43c
commit
b22b65dd29
@ -392,7 +392,8 @@ struct StorageDistributedDirectoryMonitor::Batch
|
||||
remote->writePrepared(in);
|
||||
}
|
||||
|
||||
remote->writeSuffix();
|
||||
if (remote)
|
||||
remote->writeSuffix();
|
||||
}
|
||||
catch (const Exception & e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user