Skip to content

Commit 337baba

Browse files
authored
Do not use BuilderLeaser in PathValidator (#22162)
For queries that use async prefetch this leads to concurrent use of the transaction context. The transaction context is not safe for use concurrently.
1 parent 5c7d89a commit 337baba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arangod/Graph/PathManagement/PathValidator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ auto PathValidator<ProviderType, PathStore, vertexUniqueness, edgeUniqueness>::
282282
return ValidationResult{ValidationResult::Type::FILTER_AND_PRUNE};
283283
}
284284

285-
auto vertexBuilder = transaction::BuilderLeaser(_provider.trx());
286-
auto edgeBuilder = transaction::BuilderLeaser(_provider.trx());
285+
auto vertexBuilder = std::make_unique<VPackBuilder>();
286+
auto edgeBuilder = std::make_unique<VPackBuilder>();
287287

288288
// evaluate if vertex needs to be pruned
289289
ValidationResult res{ValidationResult::Type::TAKE};

0 commit comments

Comments
 (0)