mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
fix
This commit is contained in:
parent
23fa408403
commit
3bcb9b8db5
@ -159,7 +159,7 @@ 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, ¤t_data](BlocksList::const_iterator & current_it, size_t & num_blocks) {
|
||||
std::lock_guard guard(mutex);
|
||||
current_it = current_data->begin();
|
||||
num_blocks = current_data->size();
|
||||
|
@ -94,6 +94,8 @@ private:
|
||||
/// MultiVersion data storage, so that we can copy the list of blocks to readers.
|
||||
MultiVersion<BlocksList> data;
|
||||
|
||||
mutable std::mutex mutex;
|
||||
|
||||
bool delay_read_for_global_subqueries = false;
|
||||
|
||||
std::atomic<size_t> total_size_bytes = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user