mirror of https://gitee.com/bigwinds/arangodb
SortIndex: move the unlinking of the sort attributes after unlinking the sort itself
This commit is contained in:
parent
c1d0f8bccc
commit
021f3371f2
|
@ -787,13 +787,13 @@ public:
|
|||
/// @brief removes the sortNode and its referenced Calculationnodes from the plan.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void removeSortNodeFromPlan (ExecutionPlan *newPlan) {
|
||||
newPlan->unlinkNode(newPlan->getNodeById(sortNodeID));
|
||||
|
||||
for (auto idToRemove = _sortNodeData.begin();
|
||||
idToRemove != _sortNodeData.end();
|
||||
++idToRemove) {
|
||||
newPlan->unlinkNode(newPlan->getNodeById((*idToRemove)->calculationNodeID));
|
||||
}
|
||||
|
||||
newPlan->unlinkNode(newPlan->getNodeById(sortNodeID));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue