summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/process_interface_standalone.h
diff options
context:
space:
mode:
authorNicholas Zolnierz <nicholas.zolnierz@mongodb.com>2019-08-15 20:08:22 +0000
committerevergreen <evergreen@mongodb.com>2019-08-15 20:08:22 +0000
commitc0ca6049bad1bf918e46d83cddab134b7441abf7 (patch)
tree23380aabf54cf84939ef062611d652ba7ad21905 /src/mongo/db/pipeline/process_interface_standalone.h
parent7c8f6dcb7f0bf2e397f470e8bca1cc0185216cb4 (diff)
downloadmongo-c0ca6049bad1bf918e46d83cddab134b7441abf7.tar.gz
SERVER-42684 Add support for 'scope' RunTimeConstant
Diffstat (limited to 'src/mongo/db/pipeline/process_interface_standalone.h')
-rw-r--r--src/mongo/db/pipeline/process_interface_standalone.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/process_interface_standalone.h b/src/mongo/db/pipeline/process_interface_standalone.h
index e367df574dd..7e45dd0eaa0 100644
--- a/src/mongo/db/pipeline/process_interface_standalone.h
+++ b/src/mongo/db/pipeline/process_interface_standalone.h
@@ -158,9 +158,9 @@ public:
* If we are creating a new JsExecution (and therefore a new thread-local scope), make sure
* we pass that information back to the caller.
*/
- std::pair<JsExecution*, bool> getJsExec() override {
+ std::pair<JsExecution*, bool> getJsExec(const BSONObj& scope) override {
if (!_jsExec) {
- _jsExec = std::make_unique<JsExecution>();
+ _jsExec = std::make_unique<JsExecution>(scope);
return {_jsExec.get(), true};
}
return {_jsExec.get(), false};