This commit is contained in:
feng lv 2020-10-08 19:16:53 +08:00
parent ff1a314609
commit ae544940ce

View File

@ -157,7 +157,8 @@ Pipe StorageMemory::read(
metadata_snapshot,
/// This hack is needed for global subqueries.
/// It allows to set up this Source for read AFTER Storage::read() has been called and just before actual reading
[this](BlocksList::const_iterator & current_it, size_t & num_blocks) {
[this](BlocksList::const_iterator & current_it, size_t & num_blocks)
{
std::lock_guard guard(mutex);
current_it = data.get()->begin();
num_blocks = data.get()->size();