1
0
Fork 0

fix a compile warning

This commit is contained in:
jsteemann 2019-03-21 16:53:17 +01:00
parent 679ac12395
commit 45d460f934
1 changed files with 3 additions and 1 deletions

View File

@ -4641,8 +4641,10 @@ void arangodb::aql::restrictToSingleShardRule(Optimizer* opt,
// are used in a smart join (and use distributeShardsLike on each other)
auto forwardRestrictionToPrototype = [&plan](ExecutionNode const* current, std::string const& shardId) {
auto collectionNode = dynamic_cast<CollectionAccessingNode const*>(current);
if (collectionNode == nullptr) {
return;
}
auto prototypeOutVariable = collectionNode->prototypeOutVariable();
if (prototypeOutVariable == nullptr) {
return;
}