Merge pull request #7032 from azat-archive/distributed-directory-monitor-SIGSEGV

Avoid SIGSEGV on batch send failure (file with index XX is absent)
This commit is contained in:
alexey-milovidov 2019-09-22 05:12:55 +03:00 committed by GitHub
commit 5970aafd9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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