diff --git a/src/query/v2/context.hpp b/src/query/v2/context.hpp index 24b472438..338546f4d 100644 --- a/src/query/v2/context.hpp +++ b/src/query/v2/context.hpp @@ -98,7 +98,7 @@ struct ExecutionContext { ExecutionStats execution_stats; utils::AsyncTimer timer; msgs::ShardRequestManagerInterface *shard_request_manager{nullptr}; - IdAllocator edge_ids_alloc; + IdAllocator *edge_ids_alloc; }; static_assert(std::is_move_assignable_v, "ExecutionContext must be move assignable!"); diff --git a/src/query/v2/interpreter.cpp b/src/query/v2/interpreter.cpp index 93e620639..c835c3d27 100644 --- a/src/query/v2/interpreter.cpp +++ b/src/query/v2/interpreter.cpp @@ -697,7 +697,7 @@ PullPlan::PullPlan(const std::shared_ptr plan, const Parameters &par ctx_.is_shutting_down = &interpreter_context->is_shutting_down; ctx_.is_profile_query = is_profile_query; ctx_.shard_request_manager = shard_request_manager; - ctx_.edge_ids_alloc = interpreter_context->edge_ids_alloc; + ctx_.edge_ids_alloc = &interpreter_context->edge_ids_alloc; } std::optional PullPlan::Pull(AnyStream *stream, std::optional n, diff --git a/src/query/v2/plan/operator.cpp b/src/query/v2/plan/operator.cpp index 1080882db..0ab550ed1 100644 --- a/src/query/v2/plan/operator.cpp +++ b/src/query/v2/plan/operator.cpp @@ -2422,7 +2422,7 @@ class DistributedCreateExpandCursor : public Cursor { std::vector ExpandCreationInfoToRequest(ExecutionContext &context, Frame &frame) const { std::vector edge_requests; for (const auto &edge_info : std::vector{self_.edge_info_}) { - msgs::NewExpand request{.id = {context.edge_ids_alloc.AllocateId()}}; + msgs::NewExpand request{.id = {context.edge_ids_alloc->AllocateId()}}; ExpressionEvaluator evaluator(&frame, context.symbol_table, context.evaluation_context, nullptr, storage::v3::View::NEW); request.type = {edge_info.edge_type};