mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix clang build.
This commit is contained in:
parent
ec65b4c229
commit
f473c21b9d
@ -9,6 +9,7 @@ class ChunkInfo
|
||||
{
|
||||
public:
|
||||
virtual ~ChunkInfo() = default;
|
||||
ChunkInfo() = default;
|
||||
};
|
||||
|
||||
using ChunkInfoPtr = std::shared_ptr<const ChunkInfo>;
|
||||
|
@ -7,7 +7,7 @@ WriteBuffer LazyOutputFormat::out(nullptr, 0);
|
||||
|
||||
Block LazyOutputFormat::getBlock(UInt64 milliseconds)
|
||||
{
|
||||
if (finished)
|
||||
if (finished_processing)
|
||||
{
|
||||
if (queue.size() == 0)
|
||||
return {};
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user