summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_replace_root.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-06-11 15:28:37 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-06-11 15:28:37 -0400
commit951f7a2c184af7c5d46945b56dcfbc13fd3c5197 (patch)
tree484783677e35a44eae5ed6903880f40c7b0fc336 /src/mongo/db/pipeline/document_source_replace_root.cpp
parent01a945fc58986f25ebf51d2436f75e140ca16aa1 (diff)
downloadmongo-951f7a2c184af7c5d46945b56dcfbc13fd3c5197.tar.gz
Revert "SERVER-41065 Make evaluate() thread safe by passing 'Variables' as a parameter"
This reverts commit 17cdb38b6db716dc47485a60ddff3c543e713e3d.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_replace_root.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_replace_root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_replace_root.cpp b/src/mongo/db/pipeline/document_source_replace_root.cpp
index 41ff856cdd0..4bbbffdb628 100644
--- a/src/mongo/db/pipeline/document_source_replace_root.cpp
+++ b/src/mongo/db/pipeline/document_source_replace_root.cpp
@@ -60,7 +60,7 @@ public:
Document applyTransformation(const Document& input) final {
// Extract subdocument in the form of a Value.
- Value newRoot = _newRoot->evaluate(input, &_expCtx->variables);
+ Value newRoot = _newRoot->evaluate(input);
// The newRoot expression, if it exists, must evaluate to an object.
uassert(40228,