summaryrefslogtreecommitdiff
path: root/src/mongo/db/db_raii.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/db_raii.cpp
parentad2b9ae23ad19f871f2033dc338c96ad9aa8d161 (diff)
downloadmongo-2c2d85e73d0620d779544ce67218db171c154e8b.tar.gz
SERVER-64432 Integrate SBE plan cache for $lookup
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r--src/mongo/db/db_raii.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp
index ddc53c40db1..688577f8e28 100644
--- a/src/mongo/db/db_raii.cpp
+++ b/src/mongo/db/db_raii.cpp
@@ -804,6 +804,14 @@ const CollectionPtr& AutoGetCollectionForReadMaybeLockFree::getCollection() cons
}
}
+bool AutoGetCollectionForReadMaybeLockFree::isAnySecondaryNamespaceAViewOrSharded() const {
+ if (_autoGet) {
+ return _autoGet->isAnySecondaryNamespaceAViewOrSharded();
+ } else {
+ return _autoGetLockFree->isAnySecondaryNamespaceAViewOrSharded();
+ }
+}
+
template <typename AutoGetCollectionForReadType>
AutoGetCollectionForReadCommandBase<AutoGetCollectionForReadType>::
AutoGetCollectionForReadCommandBase(