diff options
Diffstat (limited to 'src/mongo/db/query/canonical_query.h')
-rw-r--r-- | src/mongo/db/query/canonical_query.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/query/canonical_query.h b/src/mongo/db/query/canonical_query.h index ca5199e3502..39a6ac8ec47 100644 --- a/src/mongo/db/query/canonical_query.h +++ b/src/mongo/db/query/canonical_query.h @@ -208,9 +208,12 @@ public: return _canHaveNoopMatchNodes; } - const boost::intrusive_ptr<ExpressionContext>& getExpCtx() const { + auto& getExpCtx() const { return _expCtx; } + auto getExpCtxRaw() const { + return _expCtx.get(); + } private: // You must go through canonicalize to create a CanonicalQuery. |