Fix another one test.

This commit is contained in:
Nikolai Kochetov 2022-05-30 19:29:57 +00:00
parent 913e7a91ae
commit df0d580a8c
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ QueryPlanResourceHolder & QueryPlanResourceHolder::operator=(QueryPlanResourceHo
storage_holders.insert(storage_holders.end(), rhs.storage_holders.begin(), rhs.storage_holders.end());
interpreter_context.insert(interpreter_context.end(),
rhs.interpreter_context.begin(), rhs.interpreter_context.end());
query_id_holder = std::move(rhs.query_id_holder);
query_id_holders.insert(query_id_holders.end(), rhs.query_id_holders.begin(), rhs.query_id_holders.end());
return *this;
}

View File

@ -28,7 +28,7 @@ struct QueryPlanResourceHolder
std::vector<std::shared_ptr<const Context>> interpreter_context;
std::vector<StoragePtr> storage_holders;
std::vector<TableLockHolder> table_locks;
std::shared_ptr<QueryIdHolder> query_id_holder;
std::vector<std::shared_ptr<QueryIdHolder>> query_id_holders;
};
}

View File

@ -147,7 +147,7 @@ public:
}
void addResources(QueryPlanResourceHolder resources_) { resources = std::move(resources_); }
void setQueryIdHolder(std::shared_ptr<QueryIdHolder> query_id_holder) { resources.query_id_holder = std::move(query_id_holder); }
void setQueryIdHolder(std::shared_ptr<QueryIdHolder> query_id_holder) { resources.query_id_holders.emplace_back(std::move(query_id_holder)); }
/// Convert query pipeline to pipe.
static Pipe getPipe(QueryPipelineBuilder pipeline, QueryPlanResourceHolder & resources);