summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/multi_plan.cpp
diff options
context:
space:
mode:
authorRui Liu <rui.liu@mongodb.com>2022-06-22 09:52:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-22 10:42:32 +0000
commit2c2d85e73d0620d779544ce67218db171c154e8b (patch)
treec6172fde4fb0500c2254ceaf9cd92ac14c8b128d /src/mongo/db/exec/multi_plan.cpp
parentad2b9ae23ad19f871f2033dc338c96ad9aa8d161 (diff)
downloadmongo-2c2d85e73d0620d779544ce67218db171c154e8b.tar.gz
SERVER-64432 Integrate SBE plan cache for $lookup
Diffstat (limited to 'src/mongo/db/exec/multi_plan.cpp')
-rw-r--r--src/mongo/db/exec/multi_plan.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/exec/multi_plan.cpp b/src/mongo/db/exec/multi_plan.cpp
index 1db8860dc2e..0dbb0c4a405 100644
--- a/src/mongo/db/exec/multi_plan.cpp
+++ b/src/mongo/db/exec/multi_plan.cpp
@@ -46,6 +46,7 @@
#include "mongo/db/query/classic_plan_cache.h"
#include "mongo/db/query/collection_query_info.h"
#include "mongo/db/query/explain.h"
+#include "mongo/db/query/multiple_collection_accessor.h"
#include "mongo/db/query/plan_cache_key_factory.h"
#include "mongo/db/query/plan_ranker.h"
#include "mongo/db/query/plan_ranker_util.h"
@@ -280,8 +281,12 @@ Status MultiPlanStage::pickBestPlan(PlanYieldPolicy* yieldPolicy) {
}
}
- plan_cache_util::updatePlanCache(
- expCtx()->opCtx, collection(), _cachingMode, *_query, std::move(ranking), _candidates);
+ plan_cache_util::updatePlanCache(expCtx()->opCtx,
+ MultipleCollectionAccessor(collection()),
+ _cachingMode,
+ *_query,
+ std::move(ranking),
+ _candidates);
return Status::OK();
}