mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 04:42:37 +00:00
Merge pull request #7032 from azat-archive/distributed-directory-monitor-SIGSEGV
Avoid SIGSEGV on batch send failure (file with index XX is absent)
(cherry picked from commit 5970aafd9a
)
This commit is contained in:
parent
d83de5e61f
commit
9533ff12dd
@ -390,7 +390,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