diff options
Diffstat (limited to 'src/mongo/db/exec/subplan.cpp')
-rw-r--r-- | src/mongo/db/exec/subplan.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/exec/subplan.cpp b/src/mongo/db/exec/subplan.cpp index 207e32b1ea8..391337f9d78 100644 --- a/src/mongo/db/exec/subplan.cpp +++ b/src/mongo/db/exec/subplan.cpp @@ -299,8 +299,11 @@ Status SubplanStage::choosePlanForSubqueries(PlanYieldPolicy* yieldPolicy) { if (branchResult->cachedSolution.get()) { // We can get the index tags we need out of the cache. - Status tagStatus = tagOrChildAccordingToCache( - cacheData.get(), branchResult->cachedSolution->plannerData[0], orChild, _indexMap); + Status tagStatus = + tagOrChildAccordingToCache(cacheData.get(), + branchResult->cachedSolution->plannerData.get(), + orChild, + _indexMap); if (!tagStatus.isOK()) { return tagStatus; } |