提交 13f825a7 编写于 作者: A Alexey Milovidov

dbms: StorageBuffer: fixed error [#METR-13297].

上级 2d5192c4
......@@ -55,9 +55,14 @@ public:
protected:
Block readImpl()
{
Block res;
if (has_been_read)
return res;
has_been_read = true;
std::lock_guard<std::mutex> lock(buffer.mutex);
Block res;
if (!buffer.data)
return res;
......@@ -74,6 +79,7 @@ protected:
private:
NameSet column_names;
StorageBuffer::Buffer & buffer;
bool has_been_read = false;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册