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:
alexey-milovidov 2019-09-22 05:12:55 +03:00 committed by stavrolia
parent d83de5e61f
commit 9533ff12dd

View File

@ -390,7 +390,8 @@ struct StorageDistributedDirectoryMonitor::Batch
remote->writePrepared(in);
}
remote->writeSuffix();
if (remote)
remote->writeSuffix();
}
catch (const Exception & e)
{