Fix SIGSEGV in StorageKafka when broker is unavailable

This commit is contained in:
Azat Khuzhin 2020-07-22 11:28:07 +03:00
parent 58ba72c7b6
commit e2d9176617

View File

@ -35,7 +35,7 @@ public:
void readSuffixImpl() override;
void commit();
bool isStalled() const { return buffer->isStalled(); }
bool isStalled() const { return !buffer || buffer->isStalled(); }
private:
StorageKafka & storage;