From 188f24f0d61b62b9b0601f5b890b4820d7570719 Mon Sep 17 00:00:00 2001 From: Irina Yatsenko Date: Wed, 2 Nov 2022 15:16:52 +0000 Subject: SERVER-70944 precompute field hashes for ExpressionFieldPath --- src/mongo/db/pipeline/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/pipeline/expression.cpp') diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp index e87a39f85ac..080faffe5c3 100644 --- a/src/mongo/db/pipeline/expression.cpp +++ b/src/mongo/db/pipeline/expression.cpp @@ -2414,7 +2414,7 @@ intrusive_ptr ExpressionFieldPath::createVarFromString( ExpressionFieldPath::ExpressionFieldPath(ExpressionContext* const expCtx, const string& theFieldPath, Variables::Id variable) - : Expression(expCtx), _fieldPath(theFieldPath), _variable(variable) { + : Expression(expCtx), _fieldPath(theFieldPath, true /*precomputeHashes*/), _variable(variable) { const auto varName = theFieldPath.substr(0, theFieldPath.find('.')); tassert(5943201, std::string{"Variable with $$ROOT's id is not $$CURRENT or $$ROOT as expected, " -- cgit v1.2.1