Fix clang build.

This commit is contained in:
Nikolai Kochetov 2019-04-05 14:43:28 +03:00
parent ec65b4c229
commit f473c21b9d
3 changed files with 7 additions and 6 deletions

View File

@ -9,6 +9,7 @@ class ChunkInfo
{
public:
virtual ~ChunkInfo() = default;
ChunkInfo() = default;
};
using ChunkInfoPtr = std::shared_ptr<const ChunkInfo>;

View File

@ -7,7 +7,7 @@ WriteBuffer LazyOutputFormat::out(nullptr, 0);
Block LazyOutputFormat::getBlock(UInt64 milliseconds)
{
if (finished)
if (finished_processing)
{
if (queue.size() == 0)
return {};

View File

@ -11,8 +11,8 @@ class LazyOutputFormat : public IOutputFormat
{
public:
LazyOutputFormat(Block header)
: IOutputFormat(std::move(header), out), queue(1), finished(false) {}
explicit LazyOutputFormat(Block header)
: IOutputFormat(std::move(header), out), queue(1), finished_processing(false) {}
String getName() const override { return "LazyOutputFormat"; }
@ -20,7 +20,7 @@ public:
Block getTotals();
Block getExtremes();
bool isFinished() { return finished; }
bool isFinished() { return finished_processing; }
BlockStreamProfileInfo & getProfileInfo() { return info; }
@ -31,7 +31,7 @@ protected:
void finalize() override
{
finished = true;
finished_processing = true;
/// In case we are waiting for result.
queue.push({});
@ -48,7 +48,7 @@ private:
BlockStreamProfileInfo info;
std::atomic<bool> finished;
std::atomic<bool> finished_processing;
};
}